What You Just Learned
In this chapter, you learned backpropagation—an algorithm to calculate the gradients of the weights in a neural network. Those gradients represent the impact of each weight on the overall loss.
Each training iteration in a neural network ping-pongs between two steps:
-
Forward propagation: the network calculates each layer from the previous one, from the input layer to the output ŷ.
-
Backpropagation: the network bounces its way back from the output layer to the weights, using the chain rule to calculate their gradients. Then it descends those gradients, pushing the loss down, and ŷ closer to the ground truth y.
You also learned that neural networks don’t train well if all the weights have the same value. Instead, you should ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access