Builds on gradients
Optimization
Follow the steps that improve a model, from gradient descent to regularization.
Inside this subject
Read at your own pace01Optimization problems5 lessons
- 01Objective functions
Express a scalar objective for specified decision variables.
- 02Feasible sets
Identify decisions satisfying all stated constraints.
- 03Minima and minimizers
Distinguish the best objective value from the decision attaining it.
- 04Local and global optima
Distinguish neighborhood optimality from optimality over the feasible set.
- 05Empirical objectives
Form an average per-example loss over a fixed dataset.
02Convexity and optimality3 lessons
03Gradient methods5 lessons
- 01Descent directions
Check whether a direction has a negative first-order objective change.
- 02Gradient descent steps
Compute one gradient descent update.
- 03Learning rates
Diagnose overshooting from a step size on a one-dimensional quadratic.
- 04Stopping criteria
Assess a proposed stopping decision using gradient size and supplied tolerances.
- 05Momentum
Compute a momentum update using a stated velocity convention.
04Stochastic optimization8 lessons
- 01Sample gradients
Compute a single-example gradient for an empirical objective.
- 02Minibatch gradients
Average a minibatch's per-example gradients.
- 03Gradient noise
Interpret batch-size effects under a stated independent-gradient variance model.
- 04Stochastic gradient descent
Compute a parameter update using a supplied sampled gradient.
- 05Adaptive scaling
Compute an update with supplied per-coordinate second-moment scaling.
- 06Adam updates
Compute an Adam parameter update from supplied bias-corrected moment estimates.
- 07Moment bias correction
Correct a zero-initialized exponential moving average using a supplied formula.
- 08Gradient clipping
Rescale a gradient to satisfy a supplied norm threshold.
05Regularization and curvature6 lessons
- 01L2 penalties
Compute the gradient contribution of a stated quadratic penalty.
- 02Ridge solutions
Solve a small penalized least-squares system with a stated treatment of the intercept.
- 03L1 penalties
Compute an L1-penalized objective for supplied coefficients.
- 04Subgradients
Identify valid subgradients of absolute value, including at zero.
- 05Soft thresholding
Apply a supplied soft-thresholding operator to one scalar coordinate.
- 06Proximal gradient steps
Compute a supplied proximal-gradient step for an L1-regularized objective.