← Dashboard
MODULE 2 · ABOUT 6 HOURS

Neural 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

  1. Lines, slopes and predictions
  2. From one neuron to a layer
  3. Measuring mistakes with a loss function
  4. Rolling downhill: gradient descent
  5. Backpropagation without fear
  6. 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 browser

Notebook coming soon.