Chapter 3 of 10All chapters
Chapter 3 of 10
How it learns
Loss, gradients and updates.
The loop
Predict, measure the error with a loss function, compute how much each weight contributed to that error, then nudge every weight to reduce it. Repeat for many passes over the data.
- Backpropagation is the chain rule applied efficiently across the whole network.
- The learning rate controls step size and is the most sensitive setting.
Batches and epochs
Weights are updated on small batches rather than the whole dataset, which is faster and adds useful noise. One pass over all the data is an epoch.