<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://qbase.texpertssolutions.com/index.php?action=history&amp;feed=atom&amp;title=Gradient_Descent</id>
	<title>Gradient Descent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qbase.texpertssolutions.com/index.php?action=history&amp;feed=atom&amp;title=Gradient_Descent"/>
	<link rel="alternate" type="text/html" href="https://qbase.texpertssolutions.com/index.php?title=Gradient_Descent&amp;action=history"/>
	<updated>2026-06-09T19:54:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://qbase.texpertssolutions.com/index.php?title=Gradient_Descent&amp;diff=234&amp;oldid=prev</id>
		<title>Thakshashila: Created page with &quot;= Gradient Descent =  &#039;&#039;&#039;Gradient Descent&#039;&#039;&#039; is an optimization algorithm used in machine learning and deep learning to minimize the cost (loss) function by iteratively updating model parameters in the direction of steepest descent, i.e., the negative gradient.  == What is Gradient Descent? ==  Gradient Descent helps find the best-fit parameters (like weights in a neural network or coefficients in regression) that minimize the error between predicted and actual values. I...&quot;</title>
		<link rel="alternate" type="text/html" href="https://qbase.texpertssolutions.com/index.php?title=Gradient_Descent&amp;diff=234&amp;oldid=prev"/>
		<updated>2025-06-10T06:35:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Gradient Descent =  &amp;#039;&amp;#039;&amp;#039;Gradient Descent&amp;#039;&amp;#039;&amp;#039; is an optimization algorithm used in machine learning and deep learning to minimize the cost (loss) function by iteratively updating model parameters in the direction of steepest descent, i.e., the negative gradient.  == What is Gradient Descent? ==  Gradient Descent helps find the best-fit parameters (like weights in a neural network or coefficients in regression) that minimize the error between predicted and actual values. I...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Gradient Descent =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Gradient Descent&amp;#039;&amp;#039;&amp;#039; is an optimization algorithm used in machine learning and deep learning to minimize the cost (loss) function by iteratively updating model parameters in the direction of steepest descent, i.e., the negative gradient.&lt;br /&gt;
&lt;br /&gt;
== What is Gradient Descent? ==&lt;br /&gt;
&lt;br /&gt;
Gradient Descent helps find the best-fit parameters (like weights in a neural network or coefficients in regression) that minimize the error between predicted and actual values. It does this by adjusting the parameters gradually to reduce the loss.&lt;br /&gt;
&lt;br /&gt;
== The Basic Formula ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\theta := \theta - \alpha \cdot \frac{\partial J(\theta)}{\partial \theta}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; = model parameters (weights)  &lt;br /&gt;
* &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; = learning rate (step size)  &lt;br /&gt;
* &amp;lt;math&amp;gt;J(\theta)&amp;lt;/math&amp;gt; = cost/loss function  &lt;br /&gt;
* &amp;lt;math&amp;gt;\frac{\partial J(\theta)}{\partial \theta}&amp;lt;/math&amp;gt; = gradient (slope) of the loss with respect to the parameters&lt;br /&gt;
&lt;br /&gt;
== Types of Gradient Descent ==&lt;br /&gt;
&lt;br /&gt;
=== 1. Batch Gradient Descent ===&lt;br /&gt;
&lt;br /&gt;
* Uses the entire training dataset to compute the gradient.  &lt;br /&gt;
* Stable but slow on large datasets.&lt;br /&gt;
&lt;br /&gt;
=== 2. Stochastic Gradient Descent (SGD) ===&lt;br /&gt;
&lt;br /&gt;
* Updates weights for each training example.  &lt;br /&gt;
* Faster but can be noisy and less stable.&lt;br /&gt;
&lt;br /&gt;
=== 3. Mini-Batch Gradient Descent ===&lt;br /&gt;
&lt;br /&gt;
* Uses a subset (mini-batch) of training data to compute each update.  &lt;br /&gt;
* Combines advantages of both batch and SGD.  &lt;br /&gt;
* Commonly used in deep learning.&lt;br /&gt;
&lt;br /&gt;
== Learning Rate (α) ==&lt;br /&gt;
&lt;br /&gt;
The learning rate controls how big the step is during each update.  &lt;br /&gt;
* If &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is too small: slow convergence.  &lt;br /&gt;
* If &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is too large: may overshoot or diverge.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Suppose we are minimizing the Mean Squared Error (MSE) in linear regression. Gradient descent updates the weights so that the predicted line fits the data points better over time.&lt;br /&gt;
&lt;br /&gt;
== Visualization ==&lt;br /&gt;
&lt;br /&gt;
Imagine a ball rolling down a curved surface to reach the lowest point (minimum). Gradient descent is the process of rolling the ball by calculating the slope and moving it downhill.&lt;br /&gt;
&lt;br /&gt;
== Applications of Gradient Descent ==&lt;br /&gt;
&lt;br /&gt;
* Training machine learning models (e.g., linear/logistic regression)  &lt;br /&gt;
* Optimizing deep learning models (e.g., neural networks)  &lt;br /&gt;
* Used in NLP, computer vision, recommendation systems, etc.&lt;br /&gt;
&lt;br /&gt;
== Related Concepts ==&lt;br /&gt;
&lt;br /&gt;
* [[Learning Rate]]  &lt;br /&gt;
* [[Loss Function]]  &lt;br /&gt;
* [[Optimization Algorithms]]  &lt;br /&gt;
* [[Backpropagation]]  &lt;br /&gt;
* [[Stochastic Gradient Descent]]  &lt;br /&gt;
* [[Neural Networks]]&lt;br /&gt;
&lt;br /&gt;
== SEO Keywords ==&lt;br /&gt;
&lt;br /&gt;
gradient descent machine learning, how gradient descent works, types of gradient descent, optimization in ML, stochastic gradient descent, loss minimization, cost function optimization&lt;/div&gt;</summary>
		<author><name>Thakshashila</name></author>
	</entry>
</feed>