Think of standing on a hilly surface in fog; gradient descent walks downhill by taking steps opposite to the steepest slope, scaled by a learning rate.
Define the loss
We minimize a loss function J of parameters theta.
Compute the gradient
Find the direction of steepest increase.
Update opposite to the gradient
Subtract a scaled step in the gradient direction.
Repeat until convergence
Stop when the gradient is near zero or steps stop changing the loss.
Original question
Explain gradient descent and how it learns, with a visual analogy.
Ask me anything about this lesson — I'll answer using what we just covered.