<?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[Stories by Tresor Koffi on Medium]]></title>
        <description><![CDATA[Stories by Tresor Koffi on Medium]]></description>
        <link>https://medium.com/@tresor-koffi3?source=rss-9692ad3bf897------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DNcJhED68qjA2tWl.</url>
            <title>Stories by Tresor Koffi on Medium</title>
            <link>https://medium.com/@tresor-koffi3?source=rss-9692ad3bf897------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:51:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tresor-koffi3/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction of  Dropout and Ensemble Model in the History of Deep Learning]]></title>
            <link>https://medium.com/unpackai/introduction-of-dropout-and-ensemble-model-in-the-history-of-deep-learning-a4c2a512dcca?source=rss-9692ad3bf897------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4c2a512dcca</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[dropout]]></category>
            <category><![CDATA[ensemble-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Tresor Koffi]]></dc:creator>
            <pubDate>Mon, 01 Feb 2021 09:56:16 GMT</pubDate>
            <atom:updated>2021-02-01T09:56:16.808Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction of Dropout and Ensemble Model in the History of Deep Learning</strong></h3><p><em>Dropout is a technique where randomly selected neurons are ignored during training. They are “dropped-out” randomly. This means that their contribution to the activation of downstream neurons is temporally removed on the forward pass and any weight updates are not applied to the neuron on the backward pass.</em></p><p><strong>The history of drop out</strong></p><p>Dropout was introduced in 2012 as a technique to avoid overfitting and was subsequently applied in the 2012 winning submission for the Large Scale Visual Recognition Challenge that revitalized deep neural network research. The original method omitted each neuron in a neural network with probability 0.5 during each training iteration, with all neurons being included during testing. This technique was shown to significantly improve results on a variety of tasks .In the years since, a wide range of stochastic techniques inspired by the original dropout method have been proposed for use with deep learning models. We use the term dropout methods to refer to them in general. They include dropconnect standout ,fast dropout ,variational dropout, Monte Carlo dropout , and many others. Generally speaking, dropout methods involve randomly modifying neural network parameters or activations during training or inference, or approximating this process. Figure 1 illustrates research into dropout methods over time. Another direction of research into dropout methods has been applying them to a wider range of neural network topologies. This includes methods for applying dropout to convolutional neural network layers as well as to recurrent neural networks (RNNs) . RNN dropout methods in particular have become commonly used, and have been recently applied in improving state-of-the-art results in natural language processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*LJK2RXmWViejIwHGw5Q8og.png" /><figcaption>Some proposed methods and theoretical advances in dropout methods from 2012 to 2019</figcaption></figure><p><strong>Drop out in Neural Network</strong></p><p>Neural networks are the building blocks of any machine-learning architecture. They consist of one input layer, one or more hidden layers, and an output layer. When we training our neural network (or model) by updating each of its weights, it might become too dependent on the dataset we are using. Therefore, when this model has to make a prediction or classification, it will not give satisfactory results. This is known as over-fitting</p><p>“We might understand this problem through a real-world example: If a student of mathematics learns only one chapter of a book and then takes a test on the whole syllabus, he will probably fail.”</p><blockquote>“The basic idea of this method is to, based on probability, temporarily “drop out” neurons from our original network. Doing this for every training example gives us different models for each one. Afterwards, when we want to test our model, we take the average of each model to get our answer/prediction”</blockquote><p><strong>Dropout in the Training Process</strong></p><p>We assign ‘p’ to represent the probability of a neuron, in the hidden layer, being excluded from the network; this probability value is usually equal to 0.5. We do the same process for the input layer whose probability value is usually lower than 0.5 (e.g. 0.2). Remember, we delete the connections going into, and out of, the neuron when we drop it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*nty4xtm9UBuWLqxHVaamjw.png" /></figure><blockquote>Dropout can be easily implemented by randomly disconnecting some neurons of the network, resulting in what is called a “thinned” network</blockquote><p><strong>Drop out in the Testing Process</strong></p><p>An output, given from a model trained using the dropout technique, is a bit different: We can take a sample of many dropped-out models and compute the geometric mean of their output neurons by multiplying all the numbers together and taking the product’s square root. However, since this is computationally expensive, we use the original model instead by simply cutting all of the hidden units’ weights in half. This will give us a good approximation of the average for each of the different dropped-out models.</p><p>During training time, dropout randomly sets node values to zero. In the original implementation, we have “keep probability” pkeep. So dropout randomly kills node values with “dropout probability” 1−pkeep. During inference time, dropout does not kill node values, but all the weights in the layer were multiplied by pkeep. One of the major motivations of doing so is to make sure that the distribution of the values after affine transformation during inference time is close to that during training time. Equivalently, This multiplier could be placed on the input values rather than the weights.</p><p>Concretely, say we have a vector x={1,2,3,4,5} as the input to certain fully connected layer and pkeep=0.8. During training time, x could be set to {1,0,3,4,5} due to dropout. During inference time, x would be set to {0.8,1.6,2.4,3.2,4.0} while the weights remain unchanged.</p><blockquote>If a unit is retained with probability p during training, the outgoing weights of that unit are multiplied by p at test time</blockquote><p><strong>Ensemble Model</strong></p><p>Ensemble methods are techniques that create multiple models and then combine them to produce improved results. Ensemble methods usually produces more accurate solutions than a single model would.</p><p><strong>How does Ensemble Model work?</strong></p><p>Say you want to develop a machine learning model that predicts inventory stock orders for your company based on historical data you have gathered from previous years. You use train four machine learning models using a different algorithms: linear regression, support vector machine, a regression decision tree, and a basic artificial neural network. But even after much tweaking and configuration, none of them achieves your desired 95 percent prediction accuracy. These machine learning models are called “weak learners” because they fail to converge to the desired level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*ENOJk891CeKWo7U1O1dnZg.png" /><figcaption>single Machine Learning Method does not provide the desire accuracy</figcaption></figure><p>But weak doesn’t mean useless. You can combine them into an ensemble. For each new prediction, you run your input data through all four models, and then compute the average of the results. When examining the new result, you see that the aggregate results provide 92 percent accuracy, which is more than acceptable.</p><p>The reason ensemble learning is efficient is that your machine learning models work differently. Each model might perform well on some data and less accurately on others. When you combine all them, they cancel out each other’s weaknesses.</p><p>You can apply ensemble methods to both predictions problems, like the inventory prediction example we just saw, and classification problems, such as determining whether a picture contains a certain object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*z9pgdbTPHdYR0hDWXH8iIw.png" /><figcaption>Ensemble machine learning combine several models to improve the overall results.</figcaption></figure><p>Ensemble machine learning combine several models to improve the overall results.</p><p><strong>Conclusion</strong></p><p>Dropout in a neural network can be considered as an ensemble technique, where multiple sub-networks are trained together by “dropping” out certain connections between neurons.</p><p>REFERENCES</p><p><a href="http://laid.delanover.com/dropout-explained-and-implementation-in-tensorflow/">http://laid.delanover.com/dropout-explained-and-implementation-in-tensorflow/</a></p><p><a href="https://gluon.mxnet.io/chapter03_deep-neural-networks/mlp-dropout-gluon.html?highlight=dropout">https://gluon.mxnet.io/chapter03_deep-neural-networks/mlp-dropout-gluon.html?highlight=dropout</a></p><p><a href="https://machinelearningmastery.com/ensemble-methods-for-deep-learning-neural-networks/">https://machinelearningmastery.com/ensemble-methods-for-deep-learning-neural-networks/</a></p><p><a href="https://hal.archives-ouvertes.fr/hal-02922336/document">https://hal.archives-ouvertes.fr/hal-02922336/document</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4c2a512dcca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/unpackai/introduction-of-dropout-and-ensemble-model-in-the-history-of-deep-learning-a4c2a512dcca">Introduction of  Dropout and Ensemble Model in the History of Deep Learning</a> was originally published in <a href="https://medium.com/unpackai">unpack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A STEP BY STEP EXPLANATION OF PRINCIPAL COMPONENT ANALYSIS (PCA)]]></title>
            <link>https://tresor-koffi3.medium.com/a-step-by-step-explanation-of-principal-component-analysis-pca-181570574778?source=rss-9692ad3bf897------2</link>
            <guid isPermaLink="false">https://medium.com/p/181570574778</guid>
            <dc:creator><![CDATA[Tresor Koffi]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 10:08:00 GMT</pubDate>
            <atom:updated>2021-01-18T10:38:29.982Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>SIMPLE EXPLANATION OF PRINCIPAL COMPONENT ANALYSIS (PCA)</strong></h3><p>The purpose of this post is to provide a complete and simplified explanation of Principal Component Analysis, and especially to answer how it works step by step, so that everyone can understand it and make use of it, without necessarily having a strong mathematical background.</p><p>Before getting to the explanation, this post provides logical explanations of what PCA is doing in each step and simplifies the mathematical concepts behind it, as standardization, covariance, eigenvectors and eigenvalues without focusing on how to compute them.</p><p><strong>WHAT IS PRINCIPAL COMPONENT ANALYSIS?</strong></p><p>Principal Component Analysis, or PCA, is a dimensionality-reduction method that is often used to reduce the dimensionality of large data sets, by transforming a large set of variables into a smaller one that still contains most of the information in the large set.</p><p>Reducing the number of variables of a data set naturally comes at the expense of accuracy, but the trick in dimensionality reduction is to trade a little accuracy for simplicity. Because smaller data sets are easier to explore and visualize and make analyzing data much easier and faster for machine learning algorithms without extraneous variables to process.</p><blockquote>In other word, the idea of PCA is to reduce the number of variables of a data set, while preserving as much information as possible”.</blockquote><p><strong>STEP 1: STANDARDIZATION</strong></p><p>The aim of this step is to standardize the range of the continuous initial variables so that each one of them contributes equally to the analysis.</p><p>More specifically, the reason why it is critical to perform standardization prior to PCA, is that the latter is quite sensitive regarding the variances of the initial variables. That is, if there are large differences between the ranges of initial variables, those variables with larger ranges will dominate over those with small ranges (For example, a variable that ranges between 0 and 100 will dominate over a variable that ranges between 0 and 1), which will lead to biased results. So, transforming the data to comparable scales can prevent this problem.</p><p>Mathematically, this can be done by subtracting the mean and dividing by the standard deviation for each value of each variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*m81hbWROkknrbjcU68z4Gg.png" /></figure><blockquote>Once the standardization is done, all the variables will be transformed to the same scale.</blockquote><p><strong>STEP 2: COVARIANCE MATRIX COMPUTATION</strong></p><p>The aim of this step is to understand how the variables of the input data set are varying from the mean with respect to each other, or in other words, to see if there is any relationship between them. Because sometimes, variables are highly correlated in such a way that they contain redundant information. So, in order to identify these correlations, we compute the covariance matrix.</p><p>The covariance matrix is a p × p symmetric matrix (where p is the number of dimensions) that has as entries the covariances associated with all possible pairs of the initial variables. For example, for a 3-dimensional data set with 3 variables x, y, and z, the covariance matrix is a 3×3 matrix of this from:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*x06PgdPMi4OeTTnxcB8VEw.png" /><figcaption><em>Covariance Matrix for 3-Dimensional Data</em></figcaption></figure><p>Since the covariance of a variable with itself is its variance (Cov(a,a)=Var(a)), in the main diagonal (Top left to bottom right) we actually have the variances of each initial variable. And since the covariance is commutative (Cov(a,b)=Cov(b,a)), the entries of the covariance matrix are symmetric with respect to the main diagonal, which means that the upper and the lower triangular portions are equal.</p><p>What do the covariances that we have as entries of the matrix tell us about the correlations between the variables?</p><p>It’s actually the sign of the covariance that matters:</p><blockquote>if positive then : the two variables increase or decrease together (correlated)</blockquote><blockquote>if negative then : One increases when the other decreases (Inversely correlated)</blockquote><p>Now, that we know that the covariance matrix is not more than a table that summaries the correlations between all the possible pairs of variables, let’s move to the next step.</p><p><strong>STEP 3: COMPUTE THE EIGENVECTORS AND EIGENVALUES OF THE COVARIANCE MATRIX TO IDENTIFY THE PRINCIPAL COMPONENTS</strong></p><p>Eigenvectors and eigenvalues are the linear algebra concepts that we need to compute from the covariance matrix in order to determine the principal components of the data. Before getting to the explanation of these concepts, let’s first understand what do we mean by principal components.</p><p>Principal components are new variables that are constructed as linear combinations or mixtures of the initial variables. These combinations are done in such a way that the new variables (i.e., principal components) are uncorrelated and most of the information within the initial variables is squeezed or compressed into the first components. So, the idea is 10-dimensional data gives you 10 principal components, but PCA tries to put maximum possible information in the first component, then maximum remaining information in the second and so on, until having something like shown in the scree plot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*A_M8BPTP0UaGj24AGQBNPg.png" /><figcaption>Percentage of Variance (Information) for each by PC</figcaption></figure><p>Organizing information in principal components this way, will allow you to reduce dimensionality without losing much information, and this by discarding the components with low information and considering the remaining components as your new variables.</p><p>An important thing to realize here is that, the principal components are less interpretable and don’t have any real meaning since they are constructed as linear combinations of the initial variables.</p><p>Geometrically, principal components represent the directions of the data that explain a maximal amount of variance, that is to say, the lines that capture most information of the data. The relationship between variance and information here, is that, the larger the variance carried by a line, the larger the dispersion of the data points along it, and the larger the dispersion along a line, the more the information it has. To put all this simply, just think of principal components as new axes that provide the best angle to see and evaluate the data, so that the differences between the observations are better visible.</p><p><strong>HOW PCA CONSTRUCTS THE PRINCIPAL COMPONENTS</strong></p><p>As there are as many principal components as there are variables in the data, principal components are constructed in such a manner that the first principal component accounts for the largest possible variance in the data set. For example, let’s assume that the scatter plot of our data set is as shown below, can we guess the first principal component ? Yes, it’s approximately the line that matches the purple marks because it goes through the origin and it’s the line in which the projection of the points (red dots) is the most spread out. Or mathematically speaking, it’s the line that maximizes the variance (the average of the squared distances from the projected points (red dots) to the origin).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*CpYNfyBge6I3xitDUQs0xg.png" /></figure><p>The second principal component is calculated in the same way, with the condition that it is uncorrelated with (i.e., perpendicular to) the first principal component and that it accounts for the next highest variance.</p><blockquote>This continues until a total of p principal components have been calculated, equal to the original number of variables.</blockquote><p>Now that we understood what we mean by principal components, let’s go back to eigenvectors and eigenvalues. What you firstly need to know about them is that they always come in pairs, so that every eigenvector has an eigenvalue. And their number is equal to the number of dimensions of the data. For example, for a 3-dimensional data set, there are 3 variables, therefore there are 3 eigenvectors with 3 corresponding eigenvalues.</p><p>Without further ado, eigenvectors and eigenvalues are behind all the magic explained above, because the eigenvectors of the Covariance matrix are actually the directions of the axes where there is the most variance (most information) and that we call Principal Components. In addition, eigenvalues are simply the coefficients attached to eigenvectors, which give the amount of variance carried in each Principal Component.</p><blockquote>By ranking your eigenvectors in order of their eigenvalues, highest to lowest, you get the principal components in order of significance.</blockquote><p>Example:</p><p>let’s suppose that our data set is 2-dimensional with 2 variables x,y and that the eigenvectors and eigenvalues of the covariance matrix are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*gW18ExdrQwY7PhF3i4O8Mw.png" /></figure><p>If we rank the eigenvalues in descending order, we get λ1&gt;λ2, which means that the eigenvector that corresponds to the first principal component (PC1) is v1 and the one that corresponds to the second component (PC2) isv2.</p><p>After having the principal components, to compute the percentage of variance (information) accounted for by each component, we divide the eigenvalue of each component by the sum of eigenvalues. If we apply this on the example above, we find that PC1 and PC2 carry respectively 96%</p><p><strong>STEP 4: FEATURE VECTOR</strong></p><p>As we saw in the previous step, computing the eigenvectors and ordering them by their eigenvalues in descending order, allow us to find the principal components in order of significance. In this step, what we do is, to choose whether to keep all these components or discard those of lesser significance (of low eigenvalues), and form with the remaining ones a matrix of vectors that we call Feature vector.</p><blockquote>So, the feature vector is simply a matrix that has as columns the eigenvectors of the components that we decide to keep. This makes it the first step towards dimensionality reduction, because if we choose to keep only p eigenvectors (components) out of n, the final data set will have only p dimensions.</blockquote><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*-Vmd-6m5xdRettw_wV3-aQ.png" /></figure><p>Continuing with the example from the previous step, we can either form a feature vector with both of the eigenvectors v1 and v2:</p><p>Or discard the eigenvector v2, which is the one of lesser significance, and form a feature vector with v1 only:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/154/1*r8oTfCSLU8vgEQ315iQYYw.png" /></figure><p>Discarding the eigenvector v2 will reduce dimensionality by 1, and will consequently cause a loss of information in the final data set. But given that v2 was carrying only 4% of the information, the loss will be therefore not important and we will still have 96% of the information that is carried by v1.</p><p>Thus, as we saw in the example, it’s up to you to choose whether to keep all the components or discard the ones of lesser significance, depending on what you are looking for. Because if you just want to describe your data in terms of new variables (principal components) that are uncorrelated without seeking to reduce dimensionality, leaving out lesser significant components is not needed.</p><p><strong>LAST STEP: RECAST THE DATA ALONG THE PRINCIPAL COMPONENTS AXES</strong></p><p>In the previous steps, apart from standardization, you do not make any changes on the data, you just select the principal components and form the feature vector, but the input data set remains always in terms of the original axes (i.e, in terms of the initial variables).</p><p>In this step, which is the last one, the aim is to use the feature vector formed using the eigenvectors of the covariance matrix, to reorient the data from the original axes to the ones represented by the principal components (hence the name Principal Components Analysis). This can be done by multiplying the transpose of the original data set by the transpose of the feature vector.</p><p>You can check more about correlation and PCA by follow <a href="https://towardsdatascience.com/eveything-you-need-to-know-about-interpreting-correlations-2c485841c0b8">https://towardsdatascience.com/eveything-you-need-to-know-about-interpreting-correlations-2c485841c0b8</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=181570574778" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UNPACK_AI : Loss Entropy Loss explained in Fast_AI #]]></title>
            <link>https://medium.com/unpackai/unpack-ai-loss-entropy-loss-explained-in-fast-ai-1fac952a2fb8?source=rss-9692ad3bf897------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fac952a2fb8</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[cross-entropy-loss]]></category>
            <dc:creator><![CDATA[Tresor Koffi]]></dc:creator>
            <pubDate>Mon, 04 Jan 2021 11:14:41 GMT</pubDate>
            <atom:updated>2021-01-04T11:14:41.988Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>UNPACK_AI : Loss Entropy Loss explained in Fast_AI #</strong></p><p><strong>Softmax_Loss</strong></p><p>In Fast_AI , we discuss about Cross entropy Loss , it is basically the function that maps an event or values of one or more variables onto a real number in this way we used gradients have been useful to improve our model using SGD, and in order to calculate gradients we need some loss function that represents how good our model is. That is because the gradients are a measure of how that loss function changes with small tweaks to the weights.</p><p>Therefore, we need to choose a loss function. The approach would be to use accuracy, which is our metric, as our loss function as well. In this case, we would calculate our prediction for each image, collect these values to calculate an overall accuracy, and then calculate the gradients of each weight with respect to that overall accuracy.</p><p>The cross entropy formula takes in two distributions, p(x) p(x), the true distribution, and q(x)q(x), the estimated distribution, defined over the discrete variable xx and is given by</p><p>H(p,q)=−∑∀xp(x)log(q(x))</p><p>Cross-entropy loss, measures the performance of a classification model whose output is a probability value between 0 and 1. Cross-entropy loss increases as the predicted probability diverges from the actual label.</p><p>For a neural network, the calculation is independent of the following parameters:</p><p>- The kind of layer used.</p><p>- The kind of activation used</p><p>However many activations will not be compatible with the calculation because their outputs are not interpretable as probabilities.</p><p>As we discussed in fast_ai, Softmax is often used for multiclass classification because it guarantees a well-behaved probability distribution function.</p><p>For a neural network, you will usually see the equation written in a form where yy is the ground truth vector and y^y^ (or some other value taken direct from the last layer output) is the estimate. For a single example, it would look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/1*Zwp5Zj1n5ibjhoi4vohE6w.png" /></figure><p>Where ⋅ is the inner product.</p><p>And y gives all probability to the first value</p><p>The value is independent of how the remaining probability is split between incorrect classes.</p><p>You will often see this equation averaged over all examples as a cost function. It is not always strictly adhered to in descriptions, but usually a loss function is lower level and describes how a single instance or component determines an error value,</p><p>whilst a cost function is higher level and describes how a complete system is evaluated for optimization. A cost function based on multiclass log loss for data set of size NN might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*WtltPC0jxTkrBN8RpzbFTA.png" /></figure><p>Many implementations will require your ground truth values to be one-hot encoded (with a single true class), because that allows for some extra optimization. However, in principle the cross entropy loss can be calculated. However, it is important to point out that while the loss does not depend on the distribution between the incorrect classes (only the distribution between the correct class and the rest), the gradient of this loss function does effect the incorrect classes differently depending on how wrong they are.</p><p><strong>Binary Cross-Entropy Loss</strong></p><p>Also called Sigmoid Cross-Entropy loss. It is a sigmoid activation plus a Cross-Entropy loss. Unlike Softmax loss previously used it is independent for each vector component (class), meaning that the loss computed for every CNN output vector component is not affected by other component values. It’s called Binary Cross-Entropy Loss because it sets up a binary classification problem</p><p>For our model, we created our learner</p><p>The model in a Learner is generally an object of a class inheriting from nn.Module, and that we can call it using parentheses and it will return the activations of a model.</p><p>That is why it is used for multi-label classification, were the insight of an element belonging to a certain class should not influence the decision for another class.</p><p>Its important to note that:</p><p>· softmax, as we saw, requires that all predictions sum to 1, and tends to push one activation to be much larger than the others however, we may well have multiple objects that we’re confident appear in an image, so restricting the maximum sum of activations to 1 is not a good idea.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fac952a2fb8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/unpackai/unpack-ai-loss-entropy-loss-explained-in-fast-ai-1fac952a2fb8">UNPACK_AI : Loss Entropy Loss explained in Fast_AI #</a> was originally published in <a href="https://medium.com/unpackai">unpack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>