Stage 1 · From scratch · MA1
Numbers that grow
Double a number thirty times and 1 becomes about a billion.
13 lessons · 123 minGentle
About this chapter
Every model is built from a few kinds of numbers, and here you meet them with your hands. You turn dials, fit a line to dots, double a number thirty times and watch it pass a billion. Percent, the number line, a machine with a dial, squares, growth, logs, the sigmoid and the sum all get their turn. No school math is needed to start. By the end you can read one small model line by line, from the score it gives to the loss it learns from.
What you will be able to do
- 19 min
Out of a hundred
Turn any part of a whole into a percent, and say what a gain of a few points means.
- 29 min
Where numbers sit
Place numbers on a line, measure the gap between them, and know why a computer's decimals are only close.
- 39 min
A machine with one dial
Read a function as a machine, use f(x) notation, and see a model as a machine with dials.
- 49 min
Pictures of functions
Plot a function as dots, read an output off a graph, and recognize a line, a bowl and an S-curve.
- 510 min
The straight line
Draw any straight line with two dials, and read y = w x + b as one neuron.
- 69 min
Solving for the unknown
Treat an equation as a balance, and undo a machine's steps in reverse to find its input.
- 79 min
Squares and roots
Square a number, undo it with a root, and say why a model squares its misses.
- 810 min
Doubling
Feel how fast doubling grows, read powers of two and scientific notation, and size a model in bytes.
- 910 min
Growth and decay
Grow or shrink a number by a steady factor, and read what e and a decaying learning rate mean.
- 1010 min
The log button
Use a log to ask how many doublings or digits a number has, and read a chart whose axes grow by powers of ten.
- 1110 min
Squashing to a probability
Squeeze any score into a number between 0 and 1 with the sigmoid, and see how softmax does it for a whole list.
- 129 min
Adding many things
Read the sum sign out loud, find a mean as a balance point, and average a loss over examples.
- 1310 min
Where each idea lands
Point at the place in one small model where each idea from this chapter is used.
Before you start
Nothing to learn first. You can start here.