Chapter 10 · overview · 1 min read
Optimization
Optimization is the art of finding the best values: the parameters that make a model's error as small as possible. Training a model is an optimization problem, and everything before this section, functions, derivatives, gradients and vectors, was preparation for it. This section explains the loss you minimise, the landscape you walk over, the step you take, and the tricks that make the walk faster and safer.
Topics in this section:
- Loss Functions: turning "how wrong" into a single number.
- Minima, Maxima and Saddle Points: the flat spots of a landscape.
- Gradient Descent: walking downhill, one step at a time.
- Learning Rate: how big each step should be.
- Convex vs Non-Convex: landscapes with one valley and landscapes with many.
- Stochastic Gradient Descent: stepping with noisy but cheap estimates.
- Momentum and Adam: remembering the past to move faster.
- Constraints and Lagrange Multipliers: optimising within limits.
- Regularization as a Constraint: keeping models simple.