Lesson 8 of 12 10 min · 123 words
Gradient descent
Repeatedly stepping against the gradient.
Gradient descent minimises by repeatedly taking a step against the gradient:
is the learning rate. Each step moves downhill. For convex objectives with a suitable , gradient descent converges to the global minimum; for non-convex ones, it converges to a local minimum or saddle point.
Full-batch gradient descent uses all examples per step — accurate but slow for big datasets. That motivates stochastic and mini-batch variants.
Formula to remember
ERM
Pick the hypothesis with the lowest training loss.
Quick check · +5 XP