<?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 Sai on Medium]]></title>
        <description><![CDATA[Stories by Sai on Medium]]></description>
        <link>https://medium.com/@saiprakash513?source=rss-dd2b0e5cfd55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*M9srB90op_OziSwy.jpg</url>
            <title>Stories by Sai on Medium</title>
            <link>https://medium.com/@saiprakash513?source=rss-dd2b0e5cfd55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:09:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saiprakash513/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[Traditional and Representational Machine Learning]]></title>
            <link>https://medium.com/@saiprakash513/traditional-and-representational-machine-learning-317495b74c1b?source=rss-dd2b0e5cfd55------2</link>
            <guid isPermaLink="false">https://medium.com/p/317495b74c1b</guid>
            <category><![CDATA[traditional]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[representational]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sai]]></dc:creator>
            <pubDate>Mon, 18 May 2020 21:25:10 GMT</pubDate>
            <atom:updated>2020-05-18T23:29:25.557Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we dive into traditional machine learning, representational machine learning and differences between them, Let’s spend some time on understanding what’s machine learning</p><p><strong>Machine Learning:</strong></p><p>There isn’t any well accepted definition of machine learning as per machine learning practitioners. But, here are some popular definitions</p><p>Machine learning is the subfield of computer science that gives “computers the ability to learn without being explicitly programmed” — Arthur Samuel</p><p>A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance on T, as measured by P, improves with experience E — Tom Mitchell</p><p>Supervised Learning, Unsupervised Learning and Reinforcement Learning are the most common types of Machine Learning algorithms.</p><p><strong>Traditional Machine Learning</strong>:</p><p>Any fundamental algorithmic structure to solve given problem will come under Traditional ML. These algorithms learn from the data, where choice of algorithm and features(inputs) to be fed into algorithm are made by subject matter experts. Traditional ML models expects all inputs to in the format of structured data like numbers.</p><p>Traditional ML models can be used to solve classification, regression, clustering, dimensionality reduction problems</p><p><em>Examples</em>: Linear Regression, Logistic Regression, Naive Bayes, K-means</p><p><strong>Representational Machine Learning </strong>:</p><p>These algorithms can learn significant features from underlying data and can figure out what features to pay attention to, without experts explicitly experts identifying them.</p><p>Representational ML models can take unstructured data as inputs, like photos and videos. These models can be also be used to solve classification, regression, clustering, dimensionality reduction problems. Deep Learning algorithms falls under Representational ML category.</p><p><strong>Differences :</strong></p><p>Way of extracting features from input data is one of the major difference between Traditional ML and Representational ML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*yV0i3UWUBE43SbrEvgBbYA.png" /><figcaption>Image Source: <a href="http://aimagnifi.com/blog/index.php/2017/10/13/what-is-the-difference-between-machine-learning-and-deep-learning/">http://aimagnifi.com/blog/index.php/2017/10/13/what-is-the-difference-between-machine-learning-and-deep-learning/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*y_EJwKMeimJgAhK7US3KQA.png" /></figure><p>In summary, trade off between Traditional ML and Representational ML algorithms depends on the amount of training data and hardware (GPU) we have.</p><p>References:</p><p><a href="https://www.youtube.com/watch?v=PPLop4L2eGk&amp;list=PLLssT5z_DsK-h9vYZkQkYNWcItqhlRJLN&amp;index=1">https://www.youtube.com/watch?v=PPLop4L2eGk&amp;list=PLLssT5z_DsK-h9vYZkQkYNWcItqhlRJLN&amp;index=1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=317495b74c1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regularization]]></title>
            <link>https://medium.com/@saiprakash513/regularization-35a889d27907?source=rss-dd2b0e5cfd55------2</link>
            <guid isPermaLink="false">https://medium.com/p/35a889d27907</guid>
            <category><![CDATA[scikit-learn]]></category>
            <category><![CDATA[loss-function]]></category>
            <category><![CDATA[sklearn]]></category>
            <category><![CDATA[regularization]]></category>
            <category><![CDATA[overfitting]]></category>
            <dc:creator><![CDATA[Sai]]></dc:creator>
            <pubDate>Fri, 15 May 2020 01:01:38 GMT</pubDate>
            <atom:updated>2020-05-27T18:42:28.596Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overcome Overfitting using Regularization</h3><p>Users of scikit-learn might have noticed penalty parameter while using linear models like linear regression, logistic regression and linear SVC. Concept of regularization is used in neural networks too. In this post I will be sharing more insights on the kinds of regularizations available on scikit-learn and which one to use based on the data distribution.</p><p>Regularization can help to overcome overfitting (model which fits to training data very well but fails to generalize new/unseen samples) by keeping all the features but reduce magnitude/values of parameters (coefficients) by penalizing or by dropping few features which are highly colinear based on the penalty technique we choose.</p><p>Regularization techniques which will be covered in this series of posts are:</p><ol><li>L1 or Lasso</li><li>L2 or Ridge</li><li>Elastic net</li></ol><p>Before we get into regularization techniques, let’s have a quick look on how loss function based on least squared error, which will look like,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*vYOqWbDozx4CFmvVREWEiQ.png" /></figure><p>m → number of samples, htheta(x) is predicted variable, y is the actual value</p><p><strong>L2 Regularization or Ridge:</strong></p><p>L2 regularization is similar to mean squared error loss, with addition of a regularization equation to shrink all parameters or coefficients.</p><p><strong>Note</strong>: In all the equations in this post, summation starts from 1 but not from 0 as 0 is bias (y = wx + b)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*opMCj-pB-ciq8HgevfDZsA.png" /></figure><p><em>theta </em>→ coefficients</p><p><em>lambda </em>→ corresponds to a constant (regularization parameter), controls tradeoff between fitting the model well and to keep parameters small. With increase of lambda value, coefficients will move close to zero</p><p><strong>Note:</strong> Few researchers use alpha instead of lambda</p><p><em>Choosing lambda</em>:</p><p>if we set lambda to an extreme large value, say 100,000. This results in penalizing coefficients very heavily and we might end up with all coefficients close to zero. In addition, we might also end up having an under-fitting model, which might only depend on bias but not on any of features or parameters.</p><p><strong>L1 Regularization or Lasso</strong>:</p><p>The only difference between L2 and L1 is, L1 use absolute value of slope or coefficients instead of square of slope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*V6sdtLPlg9jK3K8mWIr5Aw.png" /></figure><p>Lasso (L1) can reduce coefficients very quickly than L2(Ridge). With L1, small increase of lambda can result coefficients to equal zero.</p><p><em>Which Regularization to use?</em></p><p>When there is correlation between your features and if your goal is select features instead of passing all the features to a model, use L1 for feature selection as lasso reduces highly colinear features to zero. L2 normalization can shrink the coefficients to near zero but not zero. If you think all the features are important use L2 or Ridge classifier.</p><p>In next post, I will go through elastic net</p><p>References:</p><p><a href="https://www.youtube.com/watch?v=u73PU6Qwl1I&amp;list=PLLssT5z_DsK-h9vYZkQkYNWcItqhlRJLN&amp;index=39">https://www.youtube.com/watch?v=u73PU6Qwl1I&amp;list=PLLssT5z_DsK-h9vYZkQkYNWcItqhlRJLN&amp;index=39</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35a889d27907" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>