Machine Learning

Optimization - Gradient Descent & SGD

9:33

Plays from YouTube. Watch on YouTube

How does a machine learning model actually improve during training?

Meet Gradient Descent & Optimization: the mathematics behind how machine learning models minimize errors and learn from data.

We start with convexity and gradients, then explore how gradient descent repeatedly updates model parameters to reduce the loss function.

From there, we break down learning rates, convergence, and divergence including why steps that are too small make training slow, while steps that are too large can cause instability.

Then we compare batch gradient descent, stochastic gradient descent (SGD), and mini-batch optimization, exploring the tradeoffs between computational cost, noisy updates, and training efficiency.

Finally, we cover learning rate decay and numerical gradient checking, two essential techniques for making optimization more reliable.

The big idea: Training a machine learning model is an optimization problem. Gradients tell us which direction to move, learning rates determine how far, and repeated updates help us find better parameters.

Machine learning explained visually, one concept at a time.