<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Machine Learning through visuals - Medium]]></title>
        <description><![CDATA[Welcome to &quot;Machine Learning through visuals&quot;. In this series, I want the reader to quickly recall and more importantly retain the concepts through simple visual cues shown in this article. - Medium]]></description>
        <link>https://medium.com/machine-learning-through-visuals?source=rss----9bc3223262d1---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Machine Learning through visuals - Medium</title>
            <link>https://medium.com/machine-learning-through-visuals?source=rss----9bc3223262d1---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:53:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/machine-learning-through-visuals" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Performance Metrics: Machine Learning through visuals.]]></title>
            <link>https://medium.com/machine-learning-through-visuals/performance-metrics-machine-learning-through-visuals-84ebd7cdcc20?source=rss----9bc3223262d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/84ebd7cdcc20</guid>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Amey Naik]]></dc:creator>
            <pubDate>Wed, 15 Aug 2018 04:50:12 GMT</pubDate>
            <atom:updated>2021-02-08T05:51:23.199Z</atom:updated>
            <content:encoded><![CDATA[<h3>#3: What are some performance metrics used in ML?</h3><blockquote>Welcome to “Machine Learning through visuals”. In this series, I want the reader to quickly recall and more importantly retain the concepts through simple visual cues shown in this article. A large body of research indicates that visual cues help us to better retrieve and remember information. Here, the concepts are not discussed in detail. The assumption is that the reader already knows the concept but wants a quick recap of it.</blockquote><p>The purpose of a metric is to evaluate a machine learning model. Depending on the application, we might need to evaluate different characteristics in the results.</p><p>In this post, you will see all the well-known metrics on a page, with examples for each and a visual cue to recall. The example will help you recollect the importance of a metric and describe a scenario in which it is useful. Visual cues will help you clarify the confusion matrix (which I assume you know) and beyond.</p><p>Let’s start by listing all the classification metrics commonly used:</p><ol><li>Accuracy</li><li>Precision</li><li>Recall</li><li>Specificity (Whoa! It’s a tongue-twister. Say it 5 times now!)</li><li>F1 Score</li><li>AUC ROC</li><li>Logarithmic Loss</li></ol><p>Ok, so let’s start with —</p><ol><li><strong>Accuracy</strong> — Ratio of correct predictions to total predictions made. Suitable only when there are about equal number of observations in each class.</li></ol><p><em>Example</em>: Assume there is a set of images containing about equal (need not be exactly equal) number of cats and dogs. We want to implement an algorithm to correctly classify the image. On the other hand, if we have a database where there is a significant disparity between the number of positive and negative labels. For example, if we have 95 dog images and just 5 cat images, an algorithm which classifies all of them to be ‘dog’ will have an accuracy of 95% which is very misleading!</p><blockquote>Ideally we want the accuracy to be as high as possible → 100%</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*1TNKMIdgICikElDHf2lv-w.png" /><figcaption>Formula for Accuracy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*wEDbFRBl-je_ARYYai2_mg.gif" /><figcaption>Visual Cue for Accuracy</figcaption></figure><p>2. <strong>Precision</strong> — How many samples classified as positive class <em>(TP + FP)</em> i.e. “<em>Predicted</em><strong><em> </em></strong><em>Positive</em>”, truly belong to positive class <em>(TP)</em>.</p><p><em>Example</em>: Repeating the example mentioned above, if we have 95 dog images and just 5 cat images, an algorithm which classifies all of them to be ‘cat’. Precision for classifying cats for this algorithm has TP = 5, FP = 95. So Precision (for classifying cats) = 5/(5+95) = 5%. Here the precision metric indicates something is terribly wrong with the algorithm.</p><blockquote>Having high <em>precision</em> means that when you classify an image as ‘cat’, you’re usually right about it.</blockquote><blockquote>Ideally we want the precision to be as high as possible → 100% (for both the classes or least for the class of interest.) Precision is also called Positive Predictivity.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*jrtSJDLX6fvQtUuxhcJD4g.png" /><figcaption>Formula for Precision</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*zG_HdQ0KrA7eRSdUWuxNAg.gif" /><figcaption>Visual Cue for Precision</figcaption></figure><p>3. <strong>Recall</strong> — Of all the samples that are positive <em>(TP + FN) i.e. “Actually Positive”</em>, how many were correctly classified as positive <em>(TP)</em>.</p><p><em>Example</em>: Repeating the example mentioned above, if we have 95 dog images and just 5 cat images, a <em>stupid</em> algorithm which classifies all of them to be ‘cat’. Recall for classifying cats for this algorithm has TP = 5, FN = 0. So Recall (for classifying cats) = 5/(5) = 100%. But the precision of such a model is 5%.</p><blockquote>Having high <em>recall</em> means that you can identify most of the ‘cats’ given in a data set.</blockquote><blockquote>From the above example it is clear, Recall is about capturing all actual cat images as cats. Recall is also called <strong>Sensitivity</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*_iokumvVdsm-L1NR7--mTQ.png" /><figcaption>Formula for Recall</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*WFzvipnkLeb-MZW0XLboeg.gif" /></figure><p>I know, recall and precision still sound confusing. Consider the following two applications:</p><p>a. Consider an intrusion detection application that sounds an alarm if an intruder is detected outside the door of a house. In this type of use case, ideally we want all intrusions to be detected, presumably at any cost. This is to say we want False Negatives (FN) → 0, which means we want a Recall of 100%. Precision is a little less important in this application as we can tolerate a few false positives that cause no harm. In a dataset of 100 examples, let’s say there are 5 intrusion cases and 95 cases of no intrusion. If we use an algorithm which classifies all 100 cases to be intrusions, we will achieve a 100% recall but terrible precision= 5/(5+95) = 5%. Such low precision is not desirable either. A few false positives are acceptable, but in this case there are 95, which is too much. So, in such applications, we try to achieve recall to be very high but without precision being too bad.</p><p>b. Consider a device such as Amazon Alexa. Such a device triggers on voice command — “Alexa”. In this case, we wouldn’t want the device to get triggered every now and then on background speech. This means we want the False Positives (FP) to → 0. Here we want precision to be very high so that the device doesn’t trigger randomly. In this case, it is okay to have <strong>some</strong> False Negatives (FN) i.e. the device not responding to you when you say “Alexa” i.e. we try to achieve precision to be very high but without recall being too bad.</p><p>4. <strong>Specificity</strong> — Of all the samples that are negative <em>(TN + FP) i.e. “Actually Negative”</em>, how many were correctly classified as negative <em>(TN)</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*C8QglVTkVcwYnb3xvdb3sA.png" /><figcaption>Formula for Specificity</figcaption></figure><blockquote>It is the opposite of what recall is. Just interchange Positive ↔️ Negative.</blockquote><p>5. <strong>F1 Score </strong>— Harmonic mean of Precision and Recall. It is a single score that represents both Precision and Recall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*AN6hDC5sM-jOMcKaobk7AQ.png" /></figure><blockquote>So why Harmonic Mean, why not Arithmetic Mean? <strong><em>Because it punishes extreme values more.</em></strong></blockquote><p>As explained <a href="https://stackoverflow.com/questions/26355942/why-is-the-f-measure-a-harmonic-mean-and-not-an-arithmetic-mean-of-the-precision">here</a>, consider a <em>trivial</em> method (e.g. always returning class A). There are infinite data elements of class B, and a single element of class A:</p><pre>Precision: 0.0<br>Recall:    1.0</pre><p>When taking the arithmetic mean, it would have 50% correct. Despite being the <em>worst</em> possible outcome! But, with the harmonic mean, the F1-score is 0.</p><pre>Arithmetic mean: 0.5<br>Harmonic mean:   0.0</pre><blockquote>In other words, to have a high F1-Score, you need to have <em>both</em> high precision and recall.</blockquote><p>6. AUC-ROC (Area Under Curve — Receiver Operating Curve)</p><p>An <strong>ROC curve</strong> (<strong>receiver operating characteristic curve</strong>) is a graph showing the performance of a classification model at all classification thresholds. Axes for ROC are <strong>TP</strong>R (<strong>T</strong>rue <strong>P</strong>ositive Rate) and <strong>FP</strong>R (<strong>F</strong>alse <strong>P</strong>ositive Rate).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*Sb04bZLsPe56NmPCsnVfvA.png" /><figcaption>TPR Formula</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*YHYVVN_lu4_fhtGYyziC1w.png" /><figcaption>FPR Formula</figcaption></figure><p>The curve tells us about how good the model can distinguish between the two classes. Better models can accurately distinguish between the two. Whereas, a poor model will have difficulties distinguishing between the two.</p><blockquote>Ideally we want AUC ROC to be → 1.0</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*PpFfTVN3qJKxaC2vi0TUBA.gif" /></figure><blockquote>The key point to note is that the area under the curve (AUC) is the highest when the two distribution curves (of each class) are farthest with little overlap.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*tMIpJr1H84Pdb1-UxtCbCw.gif" /><figcaption>ROC AUC demo — Source <a href="http://www.navan.name/roc/">http://www.navan.name/roc/</a></figcaption></figure><p><a href="https://medium.com/greyatom/lets-learn-about-auc-roc-curve-4a94b4d88152">Here</a> is a good article explaining AUC-ROC in detail.</p><p>7. <strong>Logloss</strong> — Log Loss quantifies the accuracy of a classifier by penalizing false classifications. Mathematically Log Loss is defined as —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*GS7CgEj7Tnyi1FpAveOuRw.png" /><figcaption>Where N is the number of samples or instances, M is the number of possible labels, y is a binary indicator of whether or not label j is the correct classification for instance i, and p is the model probability of assigning label j to instance i.</figcaption></figure><blockquote>Log Loss has no upper bound and it exists on the range [0, ∞). Log Loss nearer to 0 indicates higher accuracy, whereas if the Log Loss is away from 0 then it indicates lower accuracy.Log operation is natural base.</blockquote><p>Logloss is easier to understand for two class scenario (i.e. M = 2). The formula reduces to —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*LTIK0XyyV26rDJuz1ir0ZQ.png" /><figcaption>logloss for M=2</figcaption></figure><p>Here lets assume N = 4 (i.e. we only have 4 data points) as follows —</p><p><strong><em>Datapoint 1</em></strong>: actual output <em>y = 1</em> ; predicted probability <em>p = 0.3</em></p><p><em>logloss(1) = -(1*log(0.3) + (1–1)*log(1–0.3)) = 1.2039</em></p><p><strong><em>Datapoint 2</em></strong>: actual output <em>y = 1</em>; predicted probability <em>p = 0.5</em></p><p><em>logloss(2) = -(1*log(0.5) + (1–1)*log(1–0.5)) = 0.6931</em></p><p><strong><em>Datapoint 3</em></strong>: actual output <em>y = 0</em>; predicted probability <strong>(<em>1-p) = 0.99 ; because p is prediction probability of y = 1</em></strong></p><p><em>logloss(3) = -(1*log(1-0.99) + (1–0)*log(0.99)) = </em>0.01</p><p><strong><em>Datapoint 4</em></strong>: actual output <em>y = 1</em>; predicted probability <em>p = 1</em></p><p><em>logloss(4) = -(1*log(1) + (1–1)*log(1–0)) = </em>0.0</p><p>Total logloss =[ logloss(1)+logloss(2)+logloss(3)+logloss(4)]/4 = 0.4780</p><p><em>Thanks for reading. Always open to suggestions and comments. You can comment on how you would remember any of these metrics.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84ebd7cdcc20" width="1" height="1" alt=""><hr><p><a href="https://medium.com/machine-learning-through-visuals/performance-metrics-machine-learning-through-visuals-84ebd7cdcc20">Performance Metrics: Machine Learning through visuals.</a> was originally published in <a href="https://medium.com/machine-learning-through-visuals">Machine Learning through visuals</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[tf-idf: Machine Learning through visuals.]]></title>
            <link>https://medium.com/machine-learning-through-visuals/machine-learning-through-visuals-78c82bd625?source=rss----9bc3223262d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/78c82bd625</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[tf-idf]]></category>
            <dc:creator><![CDATA[Amey Naik]]></dc:creator>
            <pubDate>Sun, 24 Jun 2018 20:15:01 GMT</pubDate>
            <atom:updated>2018-07-15T04:27:37.579Z</atom:updated>
            <content:encoded><![CDATA[<h3>tf-idf: Machine Learning through visuals. #2: What is “tf-idf”? How is it calculated? How to make sense of it?</h3><p><em>By </em><a href="https://medium.com/u/cc231c450ec4"><em>Amey Naik</em></a><em> &amp; </em><a href="https://medium.com/u/3262949f1e4b"><em>Arjun Jauhari</em></a></p><blockquote>Welcome to “Machine Learning through visuals”. In this series, I want the reader to quickly recall and more importantly retain the concepts through simple visual cues shown in this article. A large body of research indicates that visual cues help us to better retrieve and remember information. Here, the concepts are not discussed in detail. The assumption is, reader already knows the concept but wants a quick recap of it.</blockquote><p>Lets get suspense out of the equation.</p><blockquote><strong>tf-idf</strong> <em>stands for</em> term frequency — inverse document frequency.</blockquote><p>Lets learn/recall this concept with help of an example shown below.</p><p>Here we have 4 documents.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77b52a781fc9318e7cd570a379679eb2/href">https://medium.com/media/77b52a781fc9318e7cd570a379679eb2/href</a></iframe><pre><em>OUTPUT:</em><br>{&#39;bali&#39;: 1, &#39;island&#39;: 3, &#39;country&#39;: 2, &#39;peru&#39;: 5, &#39;south&#39;: 6, &#39;america&#39;: 0, &#39;japan&#39;: 4}</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae5d9a140eeb68311a07383db13ba9b8/href">https://medium.com/media/ae5d9a140eeb68311a07383db13ba9b8/href</a></iframe><pre><em>OUTPUT:</em><br>matrix([[0, 1, 1, 1, 0, 0, 0], <br>        [1, 0, 1, 0, 0, 1, 1],<br>        [0, 0, 2, 0, 0, 0, 0],<br>        [0, 0, 1, 1, 1, 0, 0]])</pre><p>Each row in the output matrix corresponds to document in the data_set. Each column corresponds to corresponding words from the vocabulary. <br><em>For example: column 0 is for ‘america’. column 1 is for ‘bali’ and so on.</em></p><p>Each element of the matrix is ‘term frequency’, i.e. number of times the word appears in that particular document.<br><em>For Example: ‘country’ appears 2 times in document 3.</em></p><p>Finally, idf (inverse document frequency)</p><p><em>idf(d, t) = log [ (1 + |D|) / (1 + df(d, t)) ] + 1.</em></p><p><em>|D| — </em>cardinality of our document space. In this example it is ‘4’.<br><em>df(d, t))</em> — the number of documents that term <em>t</em> appears in (adding 1 into the formula to avoid zero-division).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5fe91ebcfd90624ba37f07675ba29f58/href">https://medium.com/media/5fe91ebcfd90624ba37f07675ba29f58/href</a></iframe><pre>IDF: <br>[ 1.916  1.916  1. 1.510  1.916 1.916 1.916]</pre><p>IDF is calculated for each feature (in this case each term <em>t)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9Aqjltm8XdvytRB_S930A.jpeg" /><figcaption>Example showing IDF calculated for term ‘island’</figcaption></figure><p>Using the above IDF, tf-idf is calculated by multiplying it with term frequency matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/0*2TRD2Ue5G3IgN8Js.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26dJLE1saxNO5wDPW745BQ.jpeg" /><figcaption>tf-idf calculation for document 1.</figcaption></figure><p>Final step is to normalize each row of this matrix. This is to overcome a bias towards frequently repeated words in long documents which might make them look more important than they are just because of the high frequency of the term in the document.</p><p>Please note: TfidfTransformer does the above calculation and L2 normalization (by default) on the smatrix.</p><p>L2 normalization is the most famous method to normalize. Below is an image where L2 norm calculation is worked out on row1 for the above matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AaYQm4_kqU5AmQbOQY9XEQ.jpeg" /><figcaption>L2 normalization applied on Document 1 tf-idf vector.</figcaption></figure><p>Final matrix after normalization is</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/86201265d7682da0a8012a0a11fb55d5/href">https://medium.com/media/86201265d7682da0a8012a0a11fb55d5/href</a></iframe><pre><em>OUTPUT:<br></em>[[ 0.   0.726   0.379   0.572   0.   0.   0.   ]<br> [ 0.55 0.      0.288   0.      0.   0.55 0.552]<br> [ 0.   0.      1.      0.      0.   0.   0.   ]<br> [ 0.   0.      0.379   0.572   0.72 0.   0.   ]]</pre><p>Block diagram of process described above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQ25H2odm0Pvz2xChY4Z8A.jpeg" /></figure><p><strong>Interpretation of tf-idf:</strong></p><ul><li>Larger the value, more important is the term for that document.</li><li>If a particular term say <em>‘t1’</em> exists in all the documents, along with some unique terms in a particular document. <em>‘t1’</em> is assigned less weightage than the unique terms in that document.<br><em>For example: in the first document 1 = ‘Bali is an island and not a country’ <br>for tf_idf_matrix we can see row 1 has term ‘country’ assigned less weightage (=0.379) when compared to term ‘bali’ with weightage of 0.726 which exists only in that document. term ‘island’ is given weightage of 0.572 which is between that of ‘bali’ and ‘country’ as it appears in document 4 as well.</em></li><li>tf-idf matrix can be used as a feature set for your logistic regression or decision tree based machine learning algorithms.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78c82bd625" width="1" height="1" alt=""><hr><p><a href="https://medium.com/machine-learning-through-visuals/machine-learning-through-visuals-78c82bd625">tf-idf: Machine Learning through visuals.</a> was originally published in <a href="https://medium.com/machine-learning-through-visuals">Machine Learning through visuals</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bagging: Machine Learning through visuals. #1: What is “Bagging” ensemble learning?]]></title>
            <link>https://medium.com/machine-learning-through-visuals/machine-learning-through-visuals-part-1-what-is-bagging-ensemble-learning-432059568cc8?source=rss----9bc3223262d1---4</link>
            <guid isPermaLink="false">https://medium.com/p/432059568cc8</guid>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bootstrapping]]></category>
            <category><![CDATA[bagging]]></category>
            <category><![CDATA[classification]]></category>
            <dc:creator><![CDATA[Amey Naik]]></dc:creator>
            <pubDate>Sun, 24 Jun 2018 20:02:40 GMT</pubDate>
            <atom:updated>2018-11-03T14:08:37.629Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By </em><a href="https://medium.com/u/cc231c450ec4"><em>Amey Naik</em></a><em> &amp; </em><a href="https://medium.com/u/3262949f1e4b"><em>Arjun Jauhari</em></a></p><blockquote>Welcome to part 1 of “Machine Learning through visuals”. In this series, I want the reader to quickly recall and more importantly retain the concepts through simple visual cues shown in this article. A large body of research indicates that visual cues help us to better retrieve and remember information. Here, the concepts are not discussed in detail. The assumption is that the reader already knows the concept but wants a quick recap of it.</blockquote><p>Ensemble learning banks on “wisdom of crowd”. Suppose you ask a complex question to hundreds of random people, then aggregate their answers. In many cases you will find that this aggregated answer is better than an expert’s answer. An ensemble of predictors is more accurate than one best individual predictor.</p><p>Bagging is short for “Bootstrap Aggregating”.</p><h4>In bagging, training instances can be sampled several times for the same predictor.</h4><p>Let’s try to understand this with a visual cue shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*82Jbhf0iELcu1_WVIdey6Q.jpeg" /><figcaption><em>Visual showing how training instances are sampled for a predictor in bagging ensemble learning.</em></figcaption></figure><p>In the above example, training set has 7 samples. Size of the data set for each predictor is 4. This figure shows 4 samples picked up for the first predictor. <strong>As you can see, since we replace the ball after sampling each sample hence we might end up with same sample multiple times. In this example, orange ball ends up being picked up 3 times.</strong></p><p>Moving on to bagging ensemble learning: the output of each predictor is aggregated as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JlLQT-ViSrmrqXuqaf5eeQ.jpeg" /><figcaption>Bagging Ensemble Predictor.</figcaption></figure><p><em>Please note: Terms ‘classifier’ and ‘predictor’ are used interchangeably. Both mean the same.</em></p><p>Some pointers about bagging technique:</p><ol><li>Aggregation function is typically the statistical mode for classification and average for regression.</li><li>Aggregation helps reduce both bias and variance.</li><li>Predictors can all be trained in parallel unleashing the potential of a GPU.</li><li>Bagging allows training instances to be sampled several times for the same classifier. <em>(example: “orange” ball is picked up 3 times for classifier 2 as in the above figure)</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=432059568cc8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/machine-learning-through-visuals/machine-learning-through-visuals-part-1-what-is-bagging-ensemble-learning-432059568cc8">Bagging: Machine Learning through visuals. #1: What is “Bagging” ensemble learning?</a> was originally published in <a href="https://medium.com/machine-learning-through-visuals">Machine Learning through visuals</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>