Codele / Machine learning: one neuron to deep learning
Backpropagation
How does a network learn? It guesses, measures the miss, then passes the blame backward so every weight knows how much to change.
- The forward pass runs the network and measures the miss. The loss is the miss squared.
- Blame says how much the loss would change if one weight changed a little. We find it by nudging a weight and watching the loss.
- Blame travels backward, from the output toward the input, along the same edges.
- Each weight is nudged against its blame: new weight = old weight - learning rate times blame.
- Backpropagation is this loop: forward, miss, blame backward, nudge. Real libraries compute the same blame exactly and much faster.
Loading the playable lesson…