Module 10 · Lesson 3 of 648/56 in the course~22 min
Module lessons (3/6)
Backpropagation
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 10 — Neural networks and deep learning
The chain rule in action, calculating gradients, and stochastic gradient descent.
What you'll learn in this lesson
- Understand how errors propagate backward through a network using the chain rule of calculus.
- Calculate weight gradients in small numerical steps.
- Explain the role of learning rate and batch size in gradient descent.
Overview
In the forward pass, data flows from inputs to outputs:
When the prediction y_hat differs from the true label y, the loss function produces a positive error. But which parameter caused the error? A typical network has thousands or millions of weights.
Sections covered in this lesson
- 1Assigning blame for an error
- 2The chain rule in action
- 3Step through forward and backward gradients interactively
- 4Updating the weights
- 5Batching strategies
- 6Practice
Pro Lesson · Module 10 — Neural networks and deep learning
Unlock "Backpropagation" and the full Machine Learning: from first principles to practice curriculum
The chain rule in action, calculating gradients, and stochastic gradient descent.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.