Computational graphs & backpropagation
Step 5 of 14 in Deep Learning · Build · Medium
Backprop applies the chain rule backwards through the graph of operations, reusing intermediate results, to get every weight's gradient in one pass.
Build it
MLP in NumPy
Two-layer MLP with ReLU, forward and backward by hand, on MNIST.
Done when: Over 97% test accuracy; gradients pass a numerical check.
Resources
- Wikipedia: Backpropagation Article
- Karpathy: Zero to Hero Course
- Dive into Deep Learning Book
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map