<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Koehn AI</title><link>https://www.koehn.ai/en/author/koehn-ai/</link><atom:link href="https://www.koehn.ai/en/author/koehn-ai/index.xml" rel="self" type="application/rss+xml"/><description>Koehn AI</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-US</language><lastBuildDate>Wed, 04 Jan 2023 00:00:00 +0000</lastBuildDate><image><url>https://www.koehn.ai/en/author/koehn-ai/avatar_hu_fbcbaf90646508f1.jpg</url><title>Koehn AI</title><link>https://www.koehn.ai/en/author/koehn-ai/</link></image><item><title>Explainable AI using Shapley Values</title><link>https://www.koehn.ai/en/blog/feature-analysis-shapley/</link><pubDate>Wed, 04 Jan 2023 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/feature-analysis-shapley/</guid><description>&lt;h2 id="shapley-values-for-feature-importance-analysis"&gt;Shapley values for feature-importance analysis&lt;/h2&gt;
&lt;p&gt;Any machine-learning task revolves around gaining insights from data. The machine-learning model receives data of reasonable quality as input. The model gets tuned on input features derived from the input data to produce output of desired quality levels. But not all input features are of equal importance for the model. Some matter very much, but others might only add noise and increase computational complexity without any gain. There also is business value in learning about the key drivers for an output KPI. The question is: how to perform this technically?
The only machine-learning models that bring this evaluation along for free are based on Decision Trees, and even in those cases, it is left unresolved whether an increase in feature value leads to an increase or a decrease in the target variable. In contrast, the concept of
&lt;strong&gt;Shapley values&lt;/strong&gt; allows not only to cover this shortcoming, it also allows to evaluate the feature importance of general types of machine-learning model beyond Decision Trees. In this approach, each feature is systematically
&lt;strong&gt;integrated out&lt;/strong&gt; in succession and replaced with suitable
&lt;strong&gt;background noise&lt;/strong&gt; to study its impact on the target.
The analysis of feature importance using Shapley values constitutes a
&lt;strong&gt;universal tool&lt;/strong&gt; that we have used in almost every project across a range of verticals. We have used this method in the retail sector to identify key drivers for conversion. We have also implemented Shapley values when we designed a tool for scientists which gives information on what to change about an experiment in order to optimize a certain outcome.
To set up the algorithm, the
&lt;strong&gt;SHAP&lt;/strong&gt; Python package may be used. However, this package is still in experimental state and you have to be careful about bugs appearing from one version to the next. Of course you can also implement the routine by hand. Whichever route you take, keep in mind that the learnings from your feature analysis are limited in their reliability by the quality of the machine-learning model you apply it to. If the prediction quality of the model is poor, then also the feature analysis won&amp;rsquo;t be of much value.&lt;/p&gt;
&lt;h2 id="interpretation-of-results"&gt;Interpretation of results&lt;/h2&gt;
&lt;p&gt;An exemplary evaluation is given in the figure below.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="RNN"
srcset="https://www.koehn.ai/media/blog/feature-shap_hu_acbe2f078807129.webp 320w, https://www.koehn.ai/media/blog/feature-shap_hu_900134e2d206e395.webp 480w, https://www.koehn.ai/media/blog/feature-shap_hu_1cf11c7b1f52d38a.webp 651w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/feature-shap_hu_acbe2f078807129.webp"
width="651"
height="674"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
In this figure, the 25 most important features of the specific machine-learning model under scrutiny here are listed in descending order. At the same time, the figure shows whether a
&lt;strong&gt;high or low feature value&lt;/strong&gt; leads to an
&lt;strong&gt;increase or decrease in the target value&lt;/strong&gt; . If the Shapley value is positive (applies to all points to the right of the vertical line), the target value increases, while a negative Shapley value decreases the target value.
Feature 1 will serve as an example for illustration at this point, for the case of a
&lt;strong&gt;customer churn&lt;/strong&gt; model. Feature 1 shall indicate how many days ago a customer last interacted with the company studied. A low feature value indicates a recent interaction of the customer with the company, a high value indicates a longer inactivity. Since the red dots for the feature value are all to the left of the vertical line, a high feature value (longer inactivity) obviously lowers the probability of the customer to be &amp;ldquo;alive&amp;rdquo; (the target variable). Conversely, a low feature value (recent interaction) provides an increase in the probability for the customer to be alive. There can also be Boolean variables - for instance, customers who either are members of a loyalty program or not. The Shapley analysis will in this case confirm the expectation that loyalty program members have a reduced probability of churning.&lt;/p&gt;</description></item><item><title>Real-Time Object Detection using YOLO</title><link>https://www.koehn.ai/en/blog/object-detection-yolo/</link><pubDate>Mon, 04 Jul 2022 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/object-detection-yolo/</guid><description>&lt;p&gt;One of the most fascinating and rapidly advancing AI disciplines is automated object recognition. This term refers to the autonomously learned recognition and classification of objects in images or videos. Thanks to tremendous performance advances in GPU-accelerated computing, AI-based object recognition algorithms are already being used in real-world applications. Some of the most prominent application areas are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Autonomous driving or driving assistance systems&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Optical quality control, automated barcode recognition&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Support in medical imaging processes (CT, MRT)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Traffic-flow analysis or license-plate recognition&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Safety systems (e.g. persons in the track bed)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;While the practical use of object recognition systems is still in its infancy, the potential of this technology is virtually unlimited.
The technical perspective comprises two different approaches, the single-stage and the two-stage processes.&lt;/p&gt;
&lt;h2 id="two-stage-process"&gt;Two-stage process&lt;/h2&gt;
&lt;p&gt;In the two-step methods developed first, regions of interest in the image are isolated in the first step and checked for the presence of objects in the second step using an ordinary classification model. A simple algorithm for generating image sections is given by e.g. the sliding-window algorithm, in which the image sections to be classified are generated using a moving window to scan the entire image. More advanced systems use artificial intelligence to isolate interesting image sections. However, regardless of the exact structure of the first stage, the second stage always requires multiple evaluations per image. As a result, these AI systems achieve high precision, but are of limited usability for real-time applications due to the computing time required for the evaluation. An established two-stage AI architecture is given by e.g. the Region Based Convolutional Neural Network (R-CNN), which is now used in the Fast R-CNN, Faster R-CNN and Granulated R-CNN stages.&lt;/p&gt;
&lt;h2 id="single-stage-process"&gt;Single-stage process&lt;/h2&gt;
&lt;p&gt;This contrasts with the single-stage methods developed later, in which the complete evaluation, i.e. object recognition, classification and output of a limiting object frame (bounding box), takes place in only one step with only one evaluation. One of the most successful AI architectures ever, YOLO (&amp;ldquo;You Only Look Once&amp;rdquo;), belongs to the class of one-step object-recognition systems and carries the property of one-step already in its name. Like no other architecture, YOLO paved the way for real-time analysis of (moving) images and thus became a standard algorithm for object-recognition tasks. These days, the YOLO AI architecture is available in the development stages YOLOv3, YOLOv4 up to YOLOR. Due to its popularity, the main features of this object recognition system will be discussed in the following.&lt;/p&gt;
&lt;h2 id="the-output-vector"&gt;The output vector&lt;/h2&gt;
&lt;p&gt;To understand how the YOLO architecture works, it is worthwhile to take a closer look at the output vector of the model or to construct the desired output vector (ground truth) for an example. For this purpose, let us consider the following example photo in which birds and rocks are to be detected:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Objekterkennung"
srcset="https://www.koehn.ai/media/blog/yolo_hu_e3c433fcebab208f.webp 320w, https://www.koehn.ai/media/blog/yolo_hu_aa2204a2c41db4e7.webp 480w, https://www.koehn.ai/media/blog/yolo_hu_c6c38997529c99.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo_hu_e3c433fcebab208f.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
For the moment, we focus on the seagull on the left and imagine there to be no other seagulls or rocks in the photo. The general form of the YOLO output vector for a model with two classes and at most one object per image is:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Ausgabevektor"
srcset="https://www.koehn.ai/media/blog/yolo-formula-1_hu_e114a323d54c2ff3.webp 320w, https://www.koehn.ai/media/blog/yolo-formula-1_hu_7fd7e9250c780771.webp 463w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-formula-1_hu_e114a323d54c2ff3.webp"
width="463"
height="61"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Here, p_c corresponds to the confidence level that an object is present in the predicted bounding box. b_x,b_y are the coordinates of the center of the bounding box. The quantities b_h,b_w denote the height and width of the bounding box, respectively. The last components of the vector denote the class labels. They provide information about whether the object is a bird or a rock. More precisely, c_bird or c_rock are conditional probabilities, i.e. given the condition that the bounding box contains an object, how likely is it that the object is a bird or rock, respectively. For the above example photo with only the left seagull, the corresponding ground truth vector is thus
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Ground-Truth-Vektor"
srcset="https://www.koehn.ai/media/blog/yolo-groundtruth_hu_e9341bb2b95b9c71.webp 320w, https://www.koehn.ai/media/blog/yolo-groundtruth_hu_670eea34279b5982.webp 370w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-groundtruth_hu_e9341bb2b95b9c71.webp"
width="370"
height="58"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
with corresponding numerical values for the coordinates and dimensions of the bounding box.
The image displayed above contains not one but several objects. Thus, a single seven-component vector is obviously not sufficient for description. YOLO solves this problem by rasterizing the image:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Objekterkennung-Raster"
srcset="https://www.koehn.ai/media/blog/yolo-raster_hu_de434629b051fb45.webp 320w, https://www.koehn.ai/media/blog/yolo-raster_hu_355c55f2dd7a6633.webp 480w, https://www.koehn.ai/media/blog/yolo-raster_hu_a089ef8d513af2ad.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-raster_hu_de434629b051fb45.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Instead of using a single seven-component vector, the above example uses a 6x9 array of seven-component vectors, one vector for each cell. Responsible for recognition, classification and bounding of an object is in each case the cell in which the center of the object lies. The bounding box can, of course, extend beyond the cell itself. In actual practice, the vector, which is seven-component in our example, is multiplied again so that several objects can be detected in the same cell. In order to keep this blog article as comprehensible as possible, we will refrain from more detailed explanations at this point.&lt;/p&gt;
&lt;h2 id="the-network-architecture"&gt;The network architecture&lt;/h2&gt;
&lt;p&gt;With a dataset of images prepared as before, in which bounding boxes and class labels for these boxes have been manually added, the system can now be trained. The actual architecture consists of several groups of convolutional layers, followed by a smaller number of fully-connected layers [1].
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="CNN"
srcset="https://www.koehn.ai/media/blog/cnn_hu_5f347e6e6cf12c60.webp 320w, https://www.koehn.ai/media/blog/cnn_hu_78ad69f7f2c157c5.webp 480w, https://www.koehn.ai/media/blog/cnn_hu_cb273c5ffe3bf43.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/cnn_hu_5f347e6e6cf12c60.webp"
width="760"
height="317"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
where the output layer in this case has the dimension 6x9x7. For the initial training of the AI architecture, a large number of prepared images is required as well as a computer system/cluster with sufficient GPU power. Due to these circumstances, it often makes sense in practice to work with pre-trained systems that have already been trained on a large dataset and are freely available. If the desired class is not contained in the pre-trained model, it is often sufficient to modify the output layer of the system and re-train it with a few hundred examples of the new class. This approach also ensures the practical applicability of the technology on a smaller scale, since the labor-intensive step of data preparation is reduced to a minimum.
If a system trained in this way is applied to images not contained in the training set, it is not uncommon for the algorithm to output several bounding boxes with different probabilities per object. This can happen, for example, if an object extends over several cells.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="YOLO-Bounding-Boxes"
srcset="https://www.koehn.ai/media/blog/yolo-anchoring_hu_d7ae0876745bb87f.webp 320w, https://www.koehn.ai/media/blog/yolo-anchoring_hu_d73b9c24cb63d0a2.webp 480w, https://www.koehn.ai/media/blog/yolo-anchoring_hu_2850dcfe72235f1.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/yolo-anchoring_hu_d7ae0876745bb87f.webp"
width="760"
height="507"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
A simple global non-maximum suppression is clearly out of the question, since in this operation only the object with the highest probability would survive. A non-maximum suppression must therefore be performed in the individual groups. But how to identify these groups algorithmically? The concept used for this purpose in YOLO is known as Intersection Over Union (IOU). This method divides the area of the average of two bounding boxes by that of the union:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Intersection-Over-Union"
src="https://www.koehn.ai/media/blog/IOU.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
By appropriately choosing a threshold value, this concept can be used to identify the individual groups that belong together and then determine the final bounding boxes and class probabilities via group-wise non-maximum suppression. As already mentioned, the forward path of the network has to be traversed only once per image, which makes the network suitable for almost all object detection tasks, especially real-time applications.
[1] &lt;a href="https://arxiv.org/abs/1506.02640" target="_blank" rel="noopener"&gt;https://arxiv.org/abs/1506.02640&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Recurrent neural networks for personalized customer journeys</title><link>https://www.koehn.ai/en/blog/recurrent-neural-networks-personalized-customer-journeys/</link><pubDate>Wed, 15 Jun 2022 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/recurrent-neural-networks-personalized-customer-journeys/</guid><description>&lt;h2 id="know-thy-customer-flog-thy-product"&gt;Know thy customer, flog thy product.&lt;/h2&gt;
&lt;p&gt;Machine learning for data-assisted customer relationship management is becoming an increasingly important topic in marketing and quality of service. For large companies with extensive product ranges, and millions of customers, a clear challenge is the delivery of personalized service. In response to this challenge, retailers are turning to machine-learning assisted tools to sift through transactions, customers histories, and other data in order to make better predictions about future consumer behavior from prior trends. For retailers that are able to effectively leverage the vast amounts of data at their fingertips, the potential upside is enormous.
Applications range from improved customer recommendations and targeted advertising, to fraud detection, real-time bidding for online ad-inventory, optimized newsletter send-out timing, and more accurate product demand predictions. On the other hand, without targeted assistance customers may miss products of interest, be turned off by frequent irrelevant advertising, or find it easier to seek products elsewhere. The aim of this article is to introduce you to a special kind of neural network known as a recurrent neural network, which may be of particular interest for your business. We can implement similar tools for you. Feel free to reach out.&lt;/p&gt;
&lt;h2 id="machine-learning-in-marketing-and-services"&gt;Machine-learning in marketing and services&lt;/h2&gt;
&lt;p&gt;The question many Retailers face is how to best make use of the data they have at their fingertips. Traditional approaches to machine learning rely on input that is of a fixed format, which allows fixed neural architecture to take advantage of the known, and constant size of the input data. The classic example is that of image recognition, in which input is always represented as an nxn grid of colored pixels, while the output corresponds to a finite list of target labels (i.e. numbers, or letters, or the names of animals). In contrast, commercial data is usually structured as a time series, with different customers having vastly different purchasing histories. The traditional approach to dealing with diverse consumer behaviors and purchasing channels, has been to rely on feature engineering that attempts to re-express large and amorphous input datasets in terms of a small number key parameters, which can then be fed into some fixed neural architecture. For instance, the complicated purchasing history of any customer can be re-parameterized in terms of so called &lt;em&gt;RFM data&lt;/em&gt; detailing the &lt;em&gt;recency&lt;/em&gt;, &lt;em&gt;frequency&lt;/em&gt;, and &lt;em&gt;monetary&lt;/em&gt; values of a full purchasing history. The benefit of feature engineering is its simplicity, and that it evolves naturally from the classical analysis of large commercial data-sets (RFM data, for instance, has been used for many years to calculate the &lt;strong&gt;CLV&lt;/strong&gt; or &lt;em&gt;customer lifetime value&lt;/em&gt; of customers). The downside, however, is that determining which finite set of features best captures the essence of consumer histories is a time-consuming and fiddly art which at its core involves throwing away input data. If not done prudently, this reduction risks incorrect or incomplete conclusions being drawn. It would be better to have complete access to the full richness of the data set. After all, isn’t that the promised benefit of machine learning over traditional approaches in the first place?
Because consumer histories are inherently sequential and of varying length, a natural approach to consider in place of feature engineering is that of recurrent neural networks (RNNs). RNNs are artificial neural networks that are specifically designed to deal with sequential data of varying lengths. RNNs use a fixed neural architecture, however this architecture is employed to analyze each element of a sequence of data in turn. At each step, output from the proceeding step is included along with the input, providing &lt;em&gt;contextual&lt;/em&gt; information for the calculation. For the engineers reading, the difference between RNNs and more traditional feed forward neural networks is analogous to the difference between open loop and closed loop control theory. The following schematic is helpful for understanding the idea:&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="RNN"
srcset="https://www.koehn.ai/media/blog/RNN_hu_c92cd6aee445121.webp 320w, https://www.koehn.ai/media/blog/RNN_hu_a660ace1375ba088.webp 480w, https://www.koehn.ai/media/blog/RNN_hu_86f0f44cd05c7a52.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/RNN_hu_c92cd6aee445121.webp"
width="760"
height="221"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The kinds of input sequences that you should be thinking of are things like English sentences or songs, where each element of the sequences is given by a word, or a note. A useful way of understanding a RNN is to think of it &lt;code&gt;unrolled’ and acting on each element of a sequence of data one step at a time. At each step in an input sequence, the network takes in two pieces of input: (i) External input (i.e. a word, a photo, a piece of music), and (ii) output &lt;/code&gt;memory’ from the proceeding step. In turn, the network produces two pieces of output at each moment in time: (i) some usable output (perhaps an image, or some word), and (ii) an output ‘memory’ to feed into the next iteration of the network. The specifics of the input and output, as well as the internal topology of the network will depend on the problem at hand. We will say a bit more about these shortly. For now, the key point is that the same network is employed at each step in the sequence, and sequences of arbitrary length are able to be considered, which allows RNNs to process arbitrarily long inputs, and also to produce arbitrarily long outputs.
While the key idea behind RNNs of feeding output back into the input may sound simple, in practice it is extremely powerful, and has achieved remarkable results in natural language processing, speech translation, and a range of other domains. A classic example is that of a time series, in which temporal context should be taken into consideration at each moment in time.
Take for instance the problem of determining the future or past trajectory of a thrown ball from a sequence of photos. From a single photo it would be very difficult (and perhaps even impossible) to determine in which direction the ball had initially been thrown or where it is headed. On the other hand, with two or more photos, and knowledge about which order they occurred in, it should be possible to piece together information about the trajectory of the ball over time. Or said another way, context allows one not only to know the position of the ball at a given point in time, but also its derivatives.&lt;/p&gt;
&lt;h2 id="how-rnns-function"&gt;How RNNs function&lt;/h2&gt;
&lt;p&gt;Before discussing potential business applications, let&amp;rsquo;s pull back the curtain just a little, to see how RNNs work. In order to properly motivate the neural architecture behind RNNs, it is helpful to first make mention of how RNNs are trained. As with any neural network, training is achieved by updating the internal weights of the network in order to minimize the error of a predicted output in comparison to that expected for a given input. For those completely unfamiliar with neural networks, you can think of one as a &lt;em&gt;black box&lt;/em&gt; that takes some input, and uses it to produce an output. The &lt;em&gt;weights&lt;/em&gt; determine exactly what function is performed by the network, and so &lt;em&gt;training&lt;/em&gt; a network adjusts how the black box performs.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="RNN Black Box"
srcset="https://www.koehn.ai/media/blog/blackbox_hu_b556b6318db034db.webp 320w, https://www.koehn.ai/media/blog/blackbox_hu_10df49c41b5948ea.webp 480w, https://www.koehn.ai/media/blog/blackbox_hu_5636ee787b31e2bc.webp 661w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/blackbox_hu_b556b6318db034db.webp"
width="661"
height="350"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;For a standard feed-forward neural network, this training process follows three key steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Feed some input into the network to calculate a predicted output.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Calculate the `error’ or difference from the expected output, as well as the derivatives of the error with respect to the network weights.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the derivatives of the error to adjust the network&amp;rsquo;s internal weights in order to minimize the error.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This training process, known as back propagation, is repeated many times and preferably with a large amount of training data, with the ultimate goal of developing a set of weights capable of producing highly accurate output predictions for any given set of input data. For RNNs, the analogous process is known as back propagation through time (BPTT), but conceptually it is very similar to regular back propagation, and can be understood by analyzing the &lt;em&gt;unraveled&lt;/em&gt; neural network applied to a sequence of input data (as in the very first figure above). Each step of the unrolled network can be viewed as a &lt;em&gt;hidden layer&lt;/em&gt; of a regular feed forward deep neural network, which consists of an identical copy of the network. In this way, the exact same training techniques (which at their core reduce to the repeated application of the chain rule for derivatives) used in feed forward networks can also be applied to RNNs. In short: errors are calculated at each step, and the weights are correspondingly updated.
From the brief description above, readers familiar with training deep neural networks may be anticipating some of the problems that arise when training RNNs. Deep neural networks often suffer from &lt;em&gt;gradient problems&lt;/em&gt;, in which the training algorithm is more efficient at training the last layers of a deep Neural network, and becomes increasingly less effective the deeper the network is. Intuitively, this effect has to do with the dependence that each layer of a network has on input from the proceeding layers and so one sees compounding effects as one proceeds through the layers. This can lead to derivatives in the back propagation calculation that either vanish or explode, resulting in slow and noisy learning. Because RNNs are designed to work on sequences of arbitrary length, when unraveled (as in the first figure above) they may be viewed as deep neural networks of arbitrary depth. The usual result is &lt;strong&gt;memory loss&lt;/strong&gt; in training. That is, as the training algorithm adjusts the weights of a network while working over a sequence of training data, it does a much better job towards the end of a sequence. RNNs therefore tend to naturally assign far more importance to the end of an input data sequence.
At its heart, the reason that vanilla RNNs are subject to gradient problems is that the output from each step in the unrolled network is only shared at the next step in the sequence, and so there is no direct connection between the start and the end of the sequence. An obvious solution would be to directly feed the input from each step in the calculation into every subsequent step, however this would drastically increase the number of connections and the complexity of the algorithm. A less invasive approach is to explicitly create a single long term memory state that is propagated through the network, and shared at each step in the sequence along with the usual short-term memory. This is the approach of ‘long short-term memory’ networks or LSTMs, which have been employed to great effect in circumventing the gradient problems of RNNs. At each step when analyzing a sequence of data, an LSTM receives the current long-term memory of the network, known as the ‘cell state’, in addition to the usual output from the previous point in the sequence, and the external input data for the current point in the sequence.
The key new idea in LSTMs is the &lt;strong&gt;cell state&lt;/strong&gt;, which provides contextual information about the data that has already been processed in a sequence. The beauty of LSTMs is that the network itself is trained to regulate the flow of information into and out of the cell. LSTMs are composed of three smaller neural networks known as the &lt;strong&gt;forget gate&lt;/strong&gt;, the &lt;strong&gt;input gate&lt;/strong&gt;, and the &lt;strong&gt;output gate&lt;/strong&gt;. These three gates can be understood schematically by the following diagram:&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="LSTM"
srcset="https://www.koehn.ai/media/blog/LSTM_hu_5fed096c0efed965.webp 320w, https://www.koehn.ai/media/blog/LSTM_hu_10f8afb3ff930764.webp 480w, https://www.koehn.ai/media/blog/LSTM_hu_2ffd3b9cf40736c8.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/LSTM_hu_5fed096c0efed965.webp"
width="760"
height="300"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The first gate, known as the forget gate, decides which information in the incoming long-term memory &lt;strong&gt;cell state&lt;/strong&gt; vector is important, and which should be dropped. To do so it takes the output from the previous step in the sequence, together with external input, and uses it to generate a &lt;strong&gt;forget vector&lt;/strong&gt;, with elements between 0 and 1. This vector is the same dimension as the cell state vector. The forget vector and cell state are multiplied together point-wise, which has the effect of removing information from the cell state, or long-term memory. In other words, the forget gate decides which pieces of the long-term memory should be forgotten, given the output of the proceeding hidden state and the current data in the input sequence.
The next gate, known as the &lt;strong&gt;memory network&lt;/strong&gt; gate (&lt;em&gt;New Memory Update Gate&lt;/em&gt; in picture), determines what new information should be added to the long term memory cell state.
To do so it uses the output from the previous hidden state together with the new input data to generate a &lt;strong&gt;new memory update&lt;/strong&gt; vector with both positive and negative elements. The new memory-update vector is added to the cell state, resulting in the long-term memory of the network being updated with information that depends on the new input data and the context given by the previous hidden state. In combination the &lt;em&gt;Forget&lt;/em&gt; and &lt;em&gt;new memory&lt;/em&gt; gates update the long term memory or &lt;em&gt;cell state&lt;/em&gt; of the network. The final &lt;em&gt;output&lt;/em&gt; gate then combines all of the data from the cell state, the input, and the output of the proceeding step to produce the output, which is passed along to the next step in the sequence together with the cell state.&lt;/p&gt;
&lt;h2 id="rnns-in-retail"&gt;RNNs in retail&lt;/h2&gt;
&lt;p&gt;We secretly experience the power of RNNs every day when we use auto-complete on our mobile phones, or when Google suggests search queries. The same properties that make RNNs ideal for language processing, however, also make them perfectly suited for tasks in retail and commerce such as customer sentiment analysis, calculating customer lifetime value, attribution analysis, and next purchase prediction, as well as in analyzing other consumer behaviors and interests. From the perspective of data processing, customer transaction histories, just like sentences, are sequences of `words’ with arbitrary length, and in which the ordering of words holds information. RNNs reduce the effort for feature analysis: they allow to feed in sequential data where otherwise onlz aggregated data would be usable - thereby also increasing the quality of the analysis as data aggregation always translates to a loss of information.
Take the example of a return forecast model, where you want to predict the likeliness of an ordered item to be returned. You can immediately write down a long list of different input information that should be relevant for this deduction. However, they come in two different types: On the one hand, you have a set of sequential data where you collect i.a. the return rate per past order of the customer. On top of that, you also have non-sequential, single information about the customer and the current order – like the time of the order or whether the customer subscribed to your newsletter. If you want to get the most out of your model, it should be able to process both types of data and it is the sequential data where RNNs come into play.
By now, you should have a big picture view of what RNNs are and roughly how they function. You may already be imagining intriguing new use cases for your own business. The applications in retail are really endless and down to your own imagination, with huge potential for creating a data driven, highly efficient business. If you have an application you would like to discuss, we will be happy to help bring your ideas to life. From analyzing transaction tables to customer classification and segmentation to making predictions based on customer online activity, RNNs provide a host of possibilities.&lt;/p&gt;</description></item><item><title>Conversion Delay: Marketing Performance</title><link>https://www.koehn.ai/en/blog/conversion-delay-marketing-performance/</link><pubDate>Sat, 09 Apr 2022 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/conversion-delay-marketing-performance/</guid><description>&lt;p&gt;When it comes to quantifying the performance of marketing channels, the first thing that comes to mind is counting the orders per day that were placed per marketing channels and summing up their corresponding profit or revenue. To improve this direct approach, attribution models can be used to redistribute the impact of an order to the preceding interactions of the customer: The fact that the customer finally bought a product via marketing channel A is of course important, but so is the marketing channel B that caused the customer to start interacting with your shop after all – ultimately leading to spending money. Attribution models therefore reallocate (parts of) the revenue to the previous stations of the customer’s journey. This can be done either via attribution models that assign increased ratios to the first and last interaction(s), while giving less impact to those in the middle. Alternatively, dynamical attribution models determine these weights based on the data of all your customers, resulting in bespoke weights fitting their behaviour. If you are interested in more details on dynamical attribution models, you can read more in the corresponding separate Insights article on this blog.&lt;/p&gt;
&lt;h2 id="customer-journeys"&gt;Customer Journeys&lt;/h2&gt;
&lt;p&gt;Underlying these attribution models are the customer journeys, following certain rules like maximum length or whether they end after an order. This prescribed logics has direct influence on the attributed order shares / revenue: If a journey can have a maximum length of, say, 50 days, interactions of the last 50 may still get assigned a certain amount / revenue. If your journey logics allows for journeys with several consecutive orders, this holds even more. This circumstance is referred to as the
&lt;strong&gt;conversion delay&lt;/strong&gt; : some of yesterday’s interactions with your website may well only lead to revenue in the next upcoming days.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Conversion Delay"
src="https://www.koehn.ai/media/blog/conversion_delay.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="conversion-delay"&gt;Conversion Delay&lt;/h2&gt;
&lt;p&gt;When you are interested in evaluating the overall impact of a marketing campaign, e.g., the attributed orders / revenue is already a good additional measurement. However, it can only consider orders that were already placed. If you want to monitor the daily performance of more recent days, too, you need to compensate for the conversion delay and with appropriate tools as well as suitable data, this is indeed possible!
The first idea of how to possibly fix the revenue gap due to the conversion delay is of course to use the historic rates of attributed revenue per interaction of the marketing channels. Knowing yesterday’s interactions per marketing channel, we can then estimate the revenue that is likely to be generated via these interactions over the next days. While this may already yield a reasonable result, it is not of much help when monitoring specific marketing campaigns where the customers’ behaviour deviates (as provoked!) from the usual one: the revenue per interaction is probably quite different on Black Friday than the average ratio and maybe even different enough before Christmas as compared to summer. The latter may be compensable by considering the average ratio of the last weeks only, but more temporarily limited scenarios like Black Friday still won’t be covered well enough.&lt;/p&gt;
&lt;h2 id="machine-learning"&gt;Machine Learning&lt;/h2&gt;
&lt;p&gt;This is where machine learning models come into play. These allow us to draw on more input data, enabling the model to derive, e.g., whether a special situation like Black Friday is present or whether your customers show seasonal behaviour. When it comes to data acquisition, generating the training data for such a model can become rather complex, especially if the model should also use monetary values as input data: These should not be the ones the attribution model provides as they rely on the “perfect knowledge” of all future orders within the next 50 days after the reference date. If we want the model to consider the attributed revenue of the respective last days – to derive whether we are currently in a phase of a high rate of revenue per interaction –, the model should be trained on these values the same way we know them when evaluating the model today. This means that for all days of the past, we need to acquire the attributed revenues of the respective last days as we would have known them back then, on that day.&lt;/p&gt;</description></item><item><title>Markov and Shapley: Marketing attribution modelling at interaction level or path level</title><link>https://www.koehn.ai/en/blog/dynamic-marketing-attribution-modelling-markov-chain-and-shapley-value/</link><pubDate>Sun, 17 Jan 2021 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/dynamic-marketing-attribution-modelling-markov-chain-and-shapley-value/</guid><description>&lt;p&gt;Markov chain and Shapley value: In the field of marketing,
&lt;strong&gt;first-click&lt;/strong&gt; ,
&lt;strong&gt;last-click&lt;/strong&gt; or multi-click models (
&lt;strong&gt;linear&lt;/strong&gt; or
&lt;strong&gt;bathtub&lt;/strong&gt; ) are frequently used as attribution models to measure the success - or profitability - of individual marketing channels (SEA, SEO, e-mail, etc.). What all these models have in common is that they divide the value of a conversion (a purchase) in a predefined way between the different steps in the list of a customer&amp;rsquo;s interactions. For example, if one uses a last-click model and the customer has purchased a product after clicking on a Facebook ad, the value of this conversion is attributed to the &amp;ldquo;Facebook&amp;rdquo; marketing channel, regardless of any previous interactions by the customer. In the case of multi-click models, the value of a conversion is allocated to all interactions associated with this purchase according to predefined weights. However, the weightings in all these models appear
&lt;strong&gt;ad-hoc&lt;/strong&gt; , as they are not based on precise data analysis, but are
&lt;strong&gt;determined manually&lt;/strong&gt; in advance. This is where the
&lt;strong&gt;dynamic attribution&lt;/strong&gt; models come in. Instead of assigning arbitrary weights to the interactions in advance, dynamic attribution models determine these weights independently based on the data provided. The
&lt;strong&gt;Markov model&lt;/strong&gt; and the
&lt;strong&gt;Shapley value model&lt;/strong&gt; are considered state-of-the-art models. Both will be discussed in more detail below. Both are designed to produce results on the level of channels. To obtain results at the
&lt;strong&gt;interaction level&lt;/strong&gt; or
&lt;strong&gt;path level&lt;/strong&gt; requires some extra work. The latter is not within the scope of this article, but we will be happy to help you with it. Feel free to contact us for rates, we can implement the Markov and Shapley models for your business on a short notice.&lt;/p&gt;
&lt;h2 id="markov-model"&gt;Markov model&lt;/h2&gt;
&lt;p&gt;The fundamental object in the Markov model on which the entire analysis is built is the
&lt;strong&gt;Markov graph&lt;/strong&gt; . For a given data set containing the
&lt;strong&gt;interaction paths&lt;/strong&gt; of different customers (e.g., Start -&amp;gt; Facebook -&amp;gt; Remarketing -&amp;gt; Conversion/Purchase), this can be constructed as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;All marketing channels in the data set as well as the terms &amp;ldquo;start&amp;rdquo;, &amp;ldquo;conversion&amp;rdquo; and &amp;ldquo;null&amp;rdquo; (no conversion) are written individually on an index card and then spread out on a flat surface.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now you go through the interaction paths of the individual customers and illustrate each of them by connecting the corresponding index cards with arrows. If we choose an example with a total of three marketing channels and four different interaction paths, the resulting graphic could look like this, for example:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Markov interaction paths"
src="https://www.koehn.ai/media/blog/Markov_paths.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then, for each marketing channel, count the number of arrows that lead to a fixed other marketing channel and divide this number by the total number of arrows starting from this node. In the example above, you get:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Markov transition probabilities"
src="https://www.koehn.ai/media/blog/Markov_ratios.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Since out of three arrows starting from the Facebook channel, two point in the direction of Google and one in the direction of remarketing, you get the numbers 2/3 and 1/3. These numbers represent the so-called
&lt;strong&gt;transition probabilities&lt;/strong&gt; , i.e. for a customer who has just clicked on a Facebook ad, the probability is 2/3 that the next stop in his interaction path is Google, while the probability is that the next stop is Remarketing is 1/3.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The last step is to calculate the overall probability of a conversion. In the above example, there are three Markov paths that lead from the starting point to a conversion. For example, if we look at the path Start -&amp;gt; Facebook -&amp;gt; Remarketing -&amp;gt; Conversion, we get 3/4 _ 1/3 _ 2/3 = 1/6 for its probability. Correspondingly, the other two paths are 1/9 and 2/9 respectively, so that the total probability of a conversion is 1/6 + 1/9 + 2/9 = 1/2. To quantify the success of the individual marketing channels, each one of the three marketing
&lt;strong&gt;channels&lt;/strong&gt; is now
&lt;strong&gt;removed in turn&lt;/strong&gt; from the Markov graph and the calculation repeated. The success of the channel is then calculated using the formula
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Markov Formula 1"
srcset="https://www.koehn.ai/media/blog/formula1_hu_512b690e301c7f20.webp 279w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/formula1_hu_512b690e301c7f20.webp"
width="279"
height="56"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Even without explicitly following the mathematical explanations, it is intuitively clear that the above Markov graph can be used to
&lt;strong&gt;sort the marketing channels according to importance&lt;/strong&gt; . If, for example, the remarketing channel is removed, none of the three converting Markov paths remain. This channel is therefore essential in the example discussed here. If, on the other hand, Facebook or Google are removed, one converting Markov path remains in each case. These two channels are therefore somewhat less important in comparison. In this way, the success of individual marketing channels can be precisely determined on the basis of customer data,
&lt;strong&gt;without having to make further assumptions in advance&lt;/strong&gt; .&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="shapley-value-model"&gt;Shapley value model&lt;/h2&gt;
&lt;p&gt;An alternative to the Markov model is the Shapley value model. The Shapley value is a concept that belongs to the mathematical subfield of
&lt;strong&gt;game theory&lt;/strong&gt; . The basic problem solved by the Shapley value is to
&lt;strong&gt;distribute profits fairly&lt;/strong&gt; within a game in which players can form
&lt;strong&gt;coalitions&lt;/strong&gt; . However, the concept of Shapley value can also be applied to the attribution problem. Here, the different marketing channels are seen as players who typically interact in a customer&amp;rsquo;s interaction path, i.e., form a coalition. The
&lt;strong&gt;conversion rate&lt;/strong&gt; , for example, can be used as the profit to be distributed. This is determined from the customer data by counting the number of conversions (and non-conversions) for each theoretically possible interaction path. The number of conversions is then set into relation with the overal number of appearances of this interaction paths, i.e. the quotient (number of conversions) / (number of conversions + number of non-conversions) is computed. Put simply, the Shapley value model quantifies the impact of a particular marketing channel by
&lt;strong&gt;comparing&lt;/strong&gt; interaction paths that differ only in the
&lt;strong&gt;presence or absence&lt;/strong&gt; of the
&lt;strong&gt;channel&lt;/strong&gt; under consideration. To illustrate the point, consider the following examples:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="High Shapley value"
src="https://www.koehn.ai/media/blog/Shapley_high_impact.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Both interaction paths obviously differed only by the presence of the &amp;ldquo;Video Branding&amp;rdquo; channel. However, while the upper interaction path has a conversion rate of 10%, the lower path only has a conversion rate of 6%. The &amp;ldquo;Video Branding&amp;rdquo; channel thus
&lt;strong&gt;increases the conversion rate&lt;/strong&gt; by
&lt;strong&gt;about 67%&lt;/strong&gt; in relative terms (4% in absolute terms) and it receives a high Shapley value as a result, since it generates
&lt;strong&gt;substantial added value&lt;/strong&gt; . In the second example, the situation is exactly the opposite:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="Low Shapley value"
src="https://www.koehn.ai/media/blog/Shapley_low_impact.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
In relative terms, the &amp;ldquo;Display&amp;rdquo; channel obviously
&lt;strong&gt;only&lt;/strong&gt; ensures an increase in the conversion rate of
&lt;strong&gt;around 2%&lt;/strong&gt; (0.2% absolute). The Shapley value of the &amp;ldquo;Display&amp;rdquo; channel is therefore significantly lower than that of the &amp;ldquo;Video Branding&amp;rdquo; channel, as the added value generated by this channel must be regarded as
&lt;strong&gt;marginal&lt;/strong&gt; .
In the following, the exact definition of the Shapley value will now be discussed. In mathematical terms, the Shapley value for the individual marketing channels is determined using the following formula:
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Shapley Formula 2"
srcset="https://www.koehn.ai/media/blog/formula2_hu_de6988b6668b9a35.webp 320w, https://www.koehn.ai/media/blog/formula2_hu_62795b0d318bdca9.webp 480w, https://www.koehn.ai/media/blog/formula2_hu_68e0a6eb8f3aecb6.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/formula2_hu_de6988b6668b9a35.webp"
width="760"
height="61"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Here, the marginal contribution of channel i to a coalition is defined as the difference between the profit that a coalition S generates together with channel i and the profit it generates without channel i, i.e.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Shapley Formula 3"
srcset="https://www.koehn.ai/media/blog/formula3_hu_a8bde1c37b784809.webp 320w, https://www.koehn.ai/media/blog/formula3_hu_76123877157fb2c1.webp 480w, https://www.koehn.ai/media/blog/formula3_hu_22e101d6a55f8b46.webp 669w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/formula3_hu_a8bde1c37b784809.webp"
width="669"
height="42"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Here, G is the
&lt;strong&gt;profit function&lt;/strong&gt; and S is a combination of marketing channels which does not include channel i. So in the above examples, the marginal profit is given exactly by the differences of the conversion rates, i.e. 4% in the first example and 0.2% in the second example. However, to calculate the actual Shapley value of a channel, not only one interaction path is considered. Rather, the Shapley value is determined by calculating the marginal contribution of the channel under consideration for all possible coalitions and then taking the
&lt;strong&gt;average&lt;/strong&gt; . Thus, the other factors in the previously stated formula only ensure that the average is correct. In other words, the Shapley value reflects the average added value generated by a marketing channel.
One subtlety in the Shapley value model concerns the profit function G. This is
&lt;strong&gt;not predetermined&lt;/strong&gt; by the definition of the Shapley value but can be
&lt;strong&gt;determined independently&lt;/strong&gt; . In the examples given, the conversion rate was defined as the profit in the sense of the Shapley value. Alternatively, however, the
&lt;strong&gt;net revenue&lt;/strong&gt; generated by the conversions can also be used as the Shapley profit. Often, the latter version is a suitable choice. If the primary focus is on determining the cost-to-sales ratio, for example, the net revenue is in fact the necessary quantity. However, an adjustment of the profit function is possible at any time and a comparative analysis regarding different profit functions can generate further valuable insights.&lt;/p&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;The
&lt;strong&gt;primary advantage&lt;/strong&gt; of dynamic attribution models is that they produce
&lt;strong&gt;more accurate results&lt;/strong&gt; than the heuristic models, which include the Bathtub model. The reason for this is that both the Markov and Shapley value models do not perform their calculations using arbitrarily determined weights but
&lt;strong&gt;determine the weights&lt;/strong&gt; of the steps in the interaction paths
&lt;strong&gt;independently on the basis of the data&lt;/strong&gt; . Consequently, they eliminate human influence on the analysis and are therefore
&lt;strong&gt;clearly superior&lt;/strong&gt; to heuristic models. In particular, when it comes to calculating the cost-to-sales ratio for very expensive marketing channels such as
&lt;strong&gt;Search Engine Advertising (SEA)&lt;/strong&gt; , the use of models with the highest precision seems almost imperative, as any misjudgement can lead to
&lt;strong&gt;unnecessarily high follow-up costs&lt;/strong&gt; .&lt;/p&gt;</description></item><item><title>MLOps (Machine-Learning DevOps)</title><link>https://www.koehn.ai/en/blog/mlops-machine-learning-devops/</link><pubDate>Fri, 06 Nov 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/mlops-machine-learning-devops/</guid><description>&lt;p&gt;Deploying machine-learning models takes about 25% of data scientists&amp;rsquo; time, while 75% of models never go beyond the experimental phase, resulting in a significant
&lt;strong&gt;productivity bottleneck&lt;/strong&gt; . Automated deployment and retraining processes decrease the
&lt;strong&gt;time to market&lt;/strong&gt; and
&lt;strong&gt;reduce operations cost&lt;/strong&gt; . This is the subject of machine-learning operations - or in short MLOps. MLOps is an
&lt;strong&gt;extrapolation of the DevOps&lt;/strong&gt; approach to include the machine-learning modelling life cycle. Models degrade over time because the input changes. MLOps introduces
&lt;strong&gt;continuous retraining, model monitoring and evaluation of performance&lt;/strong&gt; . It saves a version history not only of code, but also of data and models. Versioning of data allows data scientists to keep track of where their data came from, and versioning of models allows to efficiently keep track of the model quality in the development process. Note that MLOps is not to be confused with AIOps, which merely augments the DevOps framework with AI techniques.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;&lt;img alt="MLOps (Machine-Learning DevOps)"
src="https://www.koehn.ai/media/blog/mlops-machine-learning-devops.svg"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="data-scientists-pain-points"&gt;Data scientists&amp;rsquo; pain points&lt;/h2&gt;
&lt;p&gt;Data scientists will tell you that their productivity is largely impaired by manually having to keep track of&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;machine-learning models,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;code versions,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;hyperparameters,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;metrics,&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ideas tried, and whether they worked or failed.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They will have trouble pinpointing the best model that had been trained two weeks prior, in order to reproduce it and to run it on full production data, or to rerun it with a more thorough parameter sweep.&lt;/p&gt;
&lt;h2 id="from-devops-to-mlops"&gt;From DevOps to MLOps&lt;/h2&gt;
&lt;p&gt;MLOps expands the DevOps integration stage with data &amp;amp; model validation. It expands delivery with the complexity of ML deployment. The team shall be able to successfully train a model and make it ready for production usage in a streamlined fashion, thereby significantly improving performance &amp;amp; agility. When in production, models need to be updated on a regular basis as new data comes in. Updates and changes need to be traceable. Continuous training of ML models has to encompass the whole
&lt;strong&gt;model life cycle&lt;/strong&gt; :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Model training pipeline (TFX, MLflow, Pachyderm, Kubeflow)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model Registry (e.g. platforms such as Data Bricks or Google)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model Serving (Deployment)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model Monitoring&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CI/CD orchestration&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Instead of simply training offline and then deploying into production, a multistep pipeline to automatically retrain and deploy models is put in place. Automatic restart of training cycles can be triggered either as scheduled, when new data arrives, when there is a difference between training and live data, or when a degradation in model performance is observed. Summary statistics will be tracked and notifications sent out or models rolled back when values deviate from expectations.&lt;/p&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;The machine-learning product development process is not only about a software package. Beyond unit-testing of methods and functions, it requires validation of data, parameters and code together in a system. Machine learning is experimental in nature. The MLOps concept expands DevOps with specific processes that help data scientists to not get lost in the model zoo or in a swamp of deployment issues.&lt;/p&gt;</description></item><item><title>Yes, but what *is* Artificial Intelligence?</title><link>https://www.koehn.ai/en/blog/what-is-artificial-intelligence/</link><pubDate>Mon, 12 Oct 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/what-is-artificial-intelligence/</guid><description>&lt;p&gt;In most cases, not actually much beyond a function fit.&lt;/p&gt;
&lt;h2 id="a-simple-example"&gt;A simple example&lt;/h2&gt;
&lt;p&gt;Let us take a look at one of the simplest examples - an example so simple that you might feel fooled. Imagine you have a list of twenty apartments, containing information about price and size of each apartment. You decide to create a two-dimensional diagram, with axes labeled &amp;ldquo;price&amp;rdquo; and &amp;ldquo;size&amp;rdquo;, respectively. Within this diagram, you mark one tick for every apartment on the list, with coordinates given by its price and size. You might observe that the price is generally increasing with larger size. Now you draw a line through your diagram in an optimal way. Optimal might mean here that the distances between data point and line are as small as possible on average. Your newly drawn line gives you a prediction for the price of any apartment based on its size. You can tell a computer to find that optimal line based on your list of apartments. A suitable algorithm takes some initial line and evolves it step by step towards the optimal line. This process of convergence constitutes the essence of machine learning, and machine learning is how AI is approached these days.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Yes, but what is Artificial Intelligence?"
srcset="https://www.koehn.ai/media/blog/what-is-artificial-intelligence_hu_69357eba289c2750.webp 320w, https://www.koehn.ai/media/blog/what-is-artificial-intelligence_hu_130fc223dd5f0915.webp 378w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/what-is-artificial-intelligence_hu_69357eba289c2750.webp"
width="378"
height="353"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="a-more-realistic-fit"&gt;A more realistic fit&lt;/h2&gt;
&lt;p&gt;A straight line is a strong restriction on the function fit. A strong restriction makes learning easier, but a straight line can only cover linear dependencies and this is in most cases just too restrictive. It underfits the more interesting dependencies. What the computer draws does not have to be a line, it could also be curved. The meaning of optimal then needs to be reassessed. With a curve, it is possible to directly connect all the ticks, rendering the average distance between data and curve zero. Although the average distance is zero, this curve is not necessarily optimal. For example, your list of apartments might contain one highly unusual sample, leading to correnspondingly unusual predictions for the prices of other apartments of the same size. This is called overfitting. Note that the clustering of similar apartments according to what is called an unsupervised algorithm also fits within this picture. Striking the right balance between underfitting and overfitting is an engineering problem, as is the distinction between supervised and unsupervised learning.&lt;/p&gt;
&lt;h2 id="more-realistic-scenarios"&gt;More realistic scenarios&lt;/h2&gt;
&lt;p&gt;Expecting the apartment price to depend only on its size is way too naive. What about its location, architecture, facilities, nearby infrastructure? Each apartment has a long list of properties, and many of them act as features for the pricing prediction. If we repeat the above process, every one of these features will require its own axis. Needless to state, we are unable to bijectively draw anything beyond two dimensions, and to imagine anything beyond three. But we might need a hundred dimensions. Making a prediction of price based on size and quality level requires us to draw a surface instead of a curve. Taking into account more than two features would require us to draw the higher-dimensional analog of a surface if we could. We can&amp;rsquo;t, hence they are called hypersurfaces. The problems humans have with imagining a high number of dimensions do not exist for computers - the computer is pragmatic and treats a further dimension merely as one further element in a list of numbers. There is one big problem however.&lt;/p&gt;
&lt;h2 id="what-is-the-algorithm-for-optimizing-on-a-high-dimensional-feature-space"&gt;What is the algorithm for optimizing on a high-dimensional feature space?&lt;/h2&gt;
&lt;p&gt;Computation time generally grows exponentially with increasing number of dimensions. Each one of the pixels of an image in a computer-vision problem could constitute its own dimension in feature space. The number of words in the vocabulary of a natural-language processing problem would map to the number of dimensions in feature space. Hence, efficient algorithms are needed. In an effort to reduce computational complexity, physicists create simplified models that need to be just complex enough to capture the relevant effects. Should it later turn out that not all relevant effects are mapped, a new and more complex model is needed. (Note that a more complex model can &lt;em&gt;look&lt;/em&gt; simpler by the style of its formulation, reflecting a sense of logical completeness up to a certain degree.) Ranging from linear and logistic regression to very deep neural networks, the space of machine-learning models is vast. The properties of all these different models are discussed elsewhere. In essence though, the idea is always the same. Give the model just enough structure to be able to learn what it should. Give it eyes if you want it to see and give it ears if you want it to hear. But don&amp;rsquo;t give it more structure than necessary, otherwise you&amp;rsquo;ll be off the fine line between conceptual progress and present-day computational feasibility.&lt;/p&gt;</description></item><item><title>Machine Learning and Football</title><link>https://www.koehn.ai/en/blog/machine-learning-football/</link><pubDate>Wed, 02 Sep 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/machine-learning-football/</guid><description>&lt;p&gt;Up until 15 years ago, football was completely reliant on instinct and intuition. This changed with the then younger generation of so-called laptop coaches. The term itself signifies the drastic change of paradigm. Whereas before, choices were made mainly on gut feeling and professional experience, it now became possible to base decisions on data. One prominent early example being the little note passed on to goalkeeper Jens Lehmann right before the penalty shoot-out of Germany vs Argentina in the WC 2006.&lt;/p&gt;
&lt;h2 id="an-abundance-of-data-in-professional-football"&gt;An abundance of data in professional football&lt;/h2&gt;
&lt;p&gt;These days, there is an abundance of data in professional football.
Sportec Solutions
, a subsidiary of
DFL
, produces about 3 million data points per match. 25 times per second, a range of features are tracked for all 22 players on the pitch. Features include amongst others the coordinates of player and ball. Manually created sets of event data additionally provide information about corner kicks, successful and missed shots on targets, bookings, and much more. Data sets like these are being sold to TV broadcasters and clubs.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Machine Learning and Football (Photo by Bence Balla-Schottner on Unsplash)"
srcset="https://www.koehn.ai/media/blog/machine-learning-football_hu_b7d0000dd0186666.webp 320w, https://www.koehn.ai/media/blog/machine-learning-football_hu_73d11eeeeedf0e57.webp 387w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/machine-learning-football_hu_b7d0000dd0186666.webp"
width="387"
height="332"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="generating-tracking-data"&gt;Generating tracking data&lt;/h2&gt;
&lt;p&gt;Companies such as Sportec Solutions have access to special cameras placed in suitable spots around the pitch that in principle allow for a precise tracking of ball and players. This setup has its limitations: the data sets feature a significant level of noise and the accuracy is not high enough to meaningfully study ball trajectories such as swerve and acceleration. The position of extremities and vertical coordinates of players are not recorded. In principle, anyone can start producing data about football matches from suitable broadcasting images - albeit projected onto two dimensions, most of the information is there. Obviously, this task can not be done manually and calls for computer-vision techniques. The startup company
Subsequent
is implementing suitable services in an automated fashion using state-of-the-art techniques.&lt;/p&gt;
&lt;h2 id="use-cases"&gt;Use Cases&lt;/h2&gt;
&lt;p&gt;The tracking and event data can be used for a wide range of use cases. Insights can be supplied to coaches and analysts at a glance via accessible dashboards with tangible illustrations. On the one hand, these include the derivation of direct statistics about individual players, groups of players or the team as a whole. These are simple aggregate statistics such as the ones you are probably used to seeing on TV, including success rates of passes, tackles, shots, each for the team as a whole and for individual players. Beyond that, it can be very insightful to construct more abstract statistics, such as goalie metrics, effectiveness of passes, the infamous packing rates, or statistics about set pieces.&lt;/p&gt;
&lt;h2 id="machine-learning-in-professional-football"&gt;Machine Learning in Professional Football&lt;/h2&gt;
&lt;p&gt;The next level of insights will be generated via machine-learning techniques. The first glimpse of what might arrive in the not too distant future is given by the
expected goal values xG
which will be featured in TV broadcasting from season 20/21. Any shot of the current match will be compared against the history of all similar shots that the machine-learning model is trained with. The model setup includes amongst other properties the position of the shot taker and the opponent pressure. But machine learning enables many further use cases. For instance, detecting complex patterns automatically will save the match analysts great amounts of time which they can invest in other topics. Let us focus on a specific example.&lt;/p&gt;
&lt;h2 id="automated-tactical-analysis-of-team-behavior"&gt;Automated tactical analysis of team behavior&lt;/h2&gt;
&lt;p&gt;It is a very time-consuming task for analysts to watch scenes of matches and take note of the tactical variants played by an opponent. In the case of set pieces, this includes the initial line-up as well as players&amp;rsquo; trajectories in anticipation of the delivery of the set piece. Based on tracking data, state-of-the-art machine-learning algorithms can perform this process automatically. Technically, this can be solved by encoding the spatio-temporal coordinate trajectories of all players using a combination of convolutional and recurrent neural networks, compressing the high-dimensional information about all the players&amp;rsquo; coordinates into a lower-dimensional latent space via the
autoencoder technique
and subsequently running a clustering algorithm on the latent space.&lt;/p&gt;
&lt;h2 id="defensive-advice-board"&gt;Defensive Advice Board&lt;/h2&gt;
&lt;p&gt;The goal is to have the system cluster similar set-piece strategies together and to set up a cluster profile for each opponent. Via a suitable dashboard visualization, such a cluster profile enables the coach to tell at a glance which set-piece strategies have been conducted by the opponent and at which frequency. The analysis can be based on a user-defined time frame, but it can also detect pattern changes during the course of a season, e.g. due to the installment of a new head coach or injury of key players.&lt;/p&gt;
&lt;h2 id="opponent-behavior-simulation"&gt;Opponent Behavior Simulation&lt;/h2&gt;
&lt;p&gt;A further emerging technique is given by the
ghosting method
. This approached is based on LSTM networks and Imitation Learning and serves to illustrate the behavior of specific or of averaged teams with respect to concrete set-piece scenarios. This method enables automated answering of questions such as &amp;ldquo;how would team X defend against offensive strategy Y, and how will this influence the set piece’s xG value?&amp;rdquo;&lt;/p&gt;
&lt;h2 id="outlook"&gt;Outlook&lt;/h2&gt;
&lt;p&gt;In spite of being conceptually simple, football is an enormously complex game to optimize. While insights from machine learning won&amp;rsquo;t ever be able to make up for lack of motivation or character in a team, they will definitely change the way the game is played over the years to come. We will see playing strategies converge towards an overall higher degree of efficiency. The bottom-up approach for how to act locally in order to achieve a common outcome will be replaced by stringent instructions derived top-down. Other team sports such as handball or basketball will also profit from these advancements.&lt;/p&gt;</description></item><item><title>Deep Learning Workstation</title><link>https://www.koehn.ai/en/blog/deep-learning-workstation-2020/</link><pubDate>Sun, 21 Jun 2020 00:00:00 +0000</pubDate><guid>https://www.koehn.ai/en/blog/deep-learning-workstation-2020/</guid><description>&lt;p&gt;Computing on cloud infrastructure is readily available with pre-constructed components and offers many operational advantages. The list of notable providers includes amongst others Amazon Web Services, Google Cloud Platform and Microsoft Azure. In many practical situations, it is nevertheless useful or even essential to have hardware on premises. This guide lists a few advantages of having a workstation on-premises, and it shall get you jumpstarted with ideas for what to buy in 2020, keeping in mind availability and pricing structure.&lt;/p&gt;
&lt;h2 id="when-to-prefer-a-local-workstation"&gt;When to prefer a local workstation&lt;/h2&gt;
&lt;p&gt;Firstly,
cost. Putting the benefit of scaling flexibility in cloud infrastructure aside, performing some serious deep-learning tasks can easily lead you into the four-figure range. In practice, this limits creativity because experiments are expensive. The break-even point for the profitability of a local workstation in comparison to cloud usage is reached rather rapid, usually after a few months.
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Deep Learning Workstation"
srcset="https://www.koehn.ai/media/blog/deep-learning-workstation-2020_hu_9f787ea573212edc.webp 320w, https://www.koehn.ai/media/blog/deep-learning-workstation-2020_hu_b943aa184297091e.webp 387w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://www.koehn.ai/media/blog/deep-learning-workstation-2020_hu_9f787ea573212edc.webp"
width="387"
height="514"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
Secondly,
being connected to a computing instance via SSH or web portal is less comfortable for the daily workflow than being connected to your local workstation. Lags and connection drops are the daily reality for almost all users.
Thirdly,
computing on cloud servers automatically means storing your data on the cloud provider&amp;rsquo;s servers. Depending on the level of sensitivity of the data to be analyzed, this may be undesirable or even illegal. The unavailability of data due to such issues is a limiting factor for creativity and rapid prototyping.&lt;/p&gt;
&lt;h2 id="hardware-components"&gt;Hardware Components&lt;/h2&gt;
&lt;p&gt;A workstation composed from the following list of components allows you to perform state-of-the-art research projects at a reasonable price in 2020. Note that assembly is an interesting part of the process. It will take an expert roughly 15 minutes, a hobbyist will need two hours. People without prior experience should set aside a weekend.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Workstation case:&lt;/strong&gt; As physical dimensions usually are no limiting factor in this setting, we recommend a workstation case that respects the E-ATX standard. Note that the chosen size standard affects the options for choice of main board. Good choice: Corsair Carbide Air 540.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Power adaptor:&lt;/strong&gt; The graphics card(s) will consume a lot of power. Depending on the number of cards to be installed, the power supply needs to be able to supply a sufficient amount of power. Otherwise, you&amp;rsquo;ll be at risk of sudden power losses during work. If you want to be on the safe side with respect to future extensions, get a 1600W power supply. A higher quality certification will save a considerable amount of energy in daily use. Good choice: Super Flower Leadex 80 PLUS Platinum 1600W.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Mainboard:&lt;/strong&gt; Get a very reliable workstation-class mainboard without multimedia frills but with evenly spaced PCI slots so that all your graphics cards fit in well. Note the standards: X299 for Intel processors, X399 for AMD processors. Good choice: Asus WS X299 SAGE.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;CPU:&lt;/strong&gt; Your choice: Intel or AMD. The advantage of AMD&amp;rsquo;s processors is that they are cheaper and feature more threads. Intel&amp;rsquo;s processors have a higher single-thread performance. Check out the new processors with VNNI. Note that Cascade Lake processors may require you to flash your main board&amp;rsquo;s BIOS beforehands. Depending on the type of main board, this can be done without a CPU installed. Good choice: Intel Core i9-10920X.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;CPU cooler:&lt;/strong&gt; A suitable cooling system to attach to your CPU. Good choice: Corsair Cooling Hydro Series H100i Platinum.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;RAM:&lt;/strong&gt; Get 8x 16GB RAM DDR4. If you&amp;rsquo;re running an Intel CPU, cheap RAM will suffice. Good choice: 8x G.SKILL RipJaws V 16GB DDR4-3200 CL16 DIMM.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Hard drive(s):&lt;/strong&gt; One 1TB NVMe SSD drive for operating system and scratch plus two large magnetic hard drives for storage. Good choice: 1x SSD 1TB Samsung M.2 PCI-E NVMe 970 EVO Plus, 2x Seagate BarraCuda SATA 6G, 7200 U/min, 2 TB.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Graphics card(s):&lt;/strong&gt; In 2020, we recommend one to four RTX 2080 Ti. These cards are being offered by a range of vendors, it doesn&amp;rsquo;t much matter which one you choose. Adding a second card will not double the performance, but increase it roughly by half. To manage the heat inside the case, a blower-style fan version has to be selected if the workstation is to contain more than one card. Good choice: 1-4x ASUS GeForce RTX 2080 Ti Turbo 11G.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Screen cables:&lt;/strong&gt; Suitable choice of HDMI and DisplayPort cables, depending on the configuration and number of screens to be connected. Note that the ASUS card features 2x DisplayPort and 1x HDMI.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Screen(s):&lt;/strong&gt; One to three screens, each between 20 and 27 inches diagonal.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Peripherals:&lt;/strong&gt; Such as keyboard, mouse and USB hub.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Operating system and software:&lt;/strong&gt; Windows 10 and Linux are the candidates. Good choice: Download a recent version of Ubuntu Linux and boot it from a USB stick. Installation is a simple process. Afterwards, install all the required components from the Ubuntu&amp;rsquo;s repositories and the pip package manager, such as compilers, interpreters, Python package managers, your IDE of choice, TensorFlow, Keras, PyTorch, cloud platform SDK and of course the Midnight Commander. For remote access, set up SSH for command line access and xRDP via SSH tunnel for remote graphical access.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The total cost of this system will vary between EUR 4000 and 7000 depending on the number of GPUs included. The assembly of the parts will pose no insurmountable obstacle to any experienced server administrator.&lt;/p&gt;</description></item></channel></rss>