Codele / Machine learning: one neuron to deep learning
Gradient descent
The computer cannot see the whole loss bowl, only the spot it stands on. So it feels which way is downhill, takes a step, and repeats until it reaches the bottom.
- The computer cannot see the whole loss bowl. It only knows the loss at the weight it is standing on.
- To feel downhill, it nudges the weight a tiny bit and sees if the loss rises or falls. That change per nudge is the slope, or gradient.
- It then steps the opposite way to the slope: new weight = weight minus learning rate times slope. Repeat until the loss stops falling.
- The learning rate is the step size. Too small crawls; too big overshoots and bounces.
Loading the playable lesson…