← DashboardMODULE 2 · ABOUT 6 HOURSNeural network math
From the slope of a line to backpropagation. Build a network from scratch.
This module is an outline. The full lecture, widget, quiz and lab are on the way.
Lecture
What you’ll learn
- A neuron is weight × input + bias, the same as the equation of a line
- Activation functions and why networks need them
- Loss: a single number for “how wrong are we?”
- Gradient descent: walking downhill on the loss
- Backpropagation as the chain rule, step by step
- Why the learning rate can be too small or too big
Lecture outline
- Lines, slopes and predictions
- From one neuron to a layer
- Measuring mistakes with a loss function
- Rolling downhill: gradient descent
- Backpropagation without fear
- Putting it together: a tiny network that learns
Discover: Neuron Playground
Drag a neuron's weight and bias to fit the data, then let gradient descent do it for you.
Interactive widget coming soon.
Quiz
8 to 10 questions. 80% to pass, unlimited retakes.
Quiz coming soon.
Lab: A neural network from scratch
Build one neuron, then a 2-layer network, in plain NumPy and train it on toy data.
Runs in your browserNotebook coming soon.