Optimization and gradients
Finding best values by setting the derivative to zero, then gradient descent in one and two variables with partial derivatives.
About 5 hours of study
Learning objectives
- Find extreme values with the first and second derivative
- Compute partial derivatives and gradients
- Run gradient descent and tune a learning rate
Lessons
- 1
Maxima, minima and gradient descent
Finding the best value: setting the derivative to zero for the largest field, the second-derivative test, and gradient descent when algebra is too hard.
- 2
Gradients and gradient descent Intermediate
Functions of several variables: partial derivatives, the gradient vector as the direction of steepest climb, and gradient descent that walks downhill in two variables.
Module practice
- Peak or valley of a quadraticEasy
- Scan a range for the lowest valueMedium
- Gradient descent in one variableHard
- Partial derivatives of a quadraticEasy
- Check a gradient numericallyMedium
- Gradient descent on a bowlHard