<?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 Thammi Saikumar on Medium]]></title>
        <description><![CDATA[Stories by Thammi Saikumar on Medium]]></description>
        <link>https://medium.com/@SaikumarThammi?source=rss-6405ddce2446------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Thammi Saikumar on Medium</title>
            <link>https://medium.com/@SaikumarThammi?source=rss-6405ddce2446------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 05:51:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SaikumarThammi/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[Gradient Descent]]></title>
            <link>https://medium.com/@SaikumarThammi/gradient-descent-80eb93e2b744?source=rss-6405ddce2446------2</link>
            <guid isPermaLink="false">https://medium.com/p/80eb93e2b744</guid>
            <dc:creator><![CDATA[Thammi Saikumar]]></dc:creator>
            <pubDate>Wed, 10 May 2023 07:30:51 GMT</pubDate>
            <atom:updated>2023-05-10T07:30:51.883Z</atom:updated>
            <content:encoded><![CDATA[<p>Gradient descent is an optimization algorithm which is commonly-used to train <a href="https://www.ibm.com/topics/machine-learning">machine learning</a> models and <a href="https://www.ibm.com/topics/neural-networks">neural networks</a>. Training data helps these models learn over time, and the cost function within gradient descent specifically acts as a barometer, gauging its accuracy with each iteration of parameter updates.</p><h3><strong>Types of gradient descent:</strong></h3><ol><li>Batch gradient descent</li><li>Stochastic gradient descent</li><li>Mini-batch gradient descent</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*pQNtdIGBY4c1h148qOpUqQ.png" /></figure><h3><strong>Batch gradient descent.</strong></h3><p>Batch gradient descent sums the error for each point in a training set, updating the model only after all training examples have been evaluated. This process referred to as a training epoch.</p><p>While this batching provides computation efficiency, it can still have a long processing time for large training datasets as it still needs to store all of the data into memory. Batch gradient descent also usually produces a stable error gradient and convergence, but sometimes that convergence point isn’t the most ideal, finding the local minimum versus the global one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*dKFFHtOfxATWeykrFC52Iw.png" /><figcaption>Batch gradient descent</figcaption></figure><h3>Stochastic gradient descent.</h3><p>Stochastic gradient descent (SGD) runs a training epoch for each example within the dataset and it updates each training example’s parameters one at a time. Since you only need to hold one training example, they are easier to store in memory. While these frequent updates can offer more detail and speed, it can result in losses in computational efficiency when compared to batch gradient descent. Its frequent updates can result in noisy gradients, but this can also be helpful in escaping the local minimum and finding the global one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*95VqUtbfKZxy6fpcIsS31Q.png" /><figcaption>Stochastic gradient descent</figcaption></figure><h3>Mini-batch gradient descent.</h3><p>Mini-batch gradient descent combines concepts from both batch gradient descent and stochastic gradient descent. It splits the training dataset into small batch sizes and performs updates on each of those batches. This approach strikes a balance between the computational efficiency of batch gradient descent and the speed of stochastic gradient descent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*mzPwfNdy6Yo0VTyDCh8S9A.png" /><figcaption>Mini batch gradient descent</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80eb93e2b744" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>