internalsGet Pro

Module 09 · Lesson 3 of 11Pro

Backpropagation: how neural networks learn

Level
Intermediate
Topic
Neural networks
Reading time
17 min

When you finish this page you can

  1. Work a backward pass by hand through a two-layer network and get the slope of every weight and bias.
  2. Write one dense layer’s backward rule for a whole batch, and check each result by its shape.
  3. Explain why a ReLU that didn’t fire passes no slope back, and when that turns into a neuron that never learns.
  4. Check hand-computed slopes against PyTorch’s loss.backward() and .grad.

Builds on 4 lessons

Start with lesson 113 min
  1. Neurons and layers: the building blocks13 min
  2. The chain rule: derivatives through layers14 min
  3. Automatic differentiation: how PyTorch finds gradients16 min
  4. The training loop: predict, measure, adjust13 min

The newcomer got 0.5, and she left

is our example online store. Every Monday, Joseph’s growth team sends vouchers to the customers most likely to : to stop buying. Farah, an ML engineer, builds the models that rank them, on a notebook sample of 200,000 customers.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan