Understanding Gradient Descent in Machine Learning

Machine Learning AI

Gradient descent is an optimization algorithm used to minimize some function by iteratively moving in the direction of steepest descent.

The Math

Given a cost function J(θ)J(\theta), the update rule is:

θj:=θjαθjJ(θ)\theta_j := \theta_j - \alpha \frac{\partial}{\partial \theta_j} J(\theta)

where α\alpha is the learning rate.