Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · AI · Neurons to a language model · with code: TypeScript · about 19 min to read

Watch: What deep learning actually is: backprop, and why language was hard
▶ VideoPlay it as a journeyTutor comes with a plan

One Knob, One Slope

How It Learns
How It Learns · Open board

The How It Learns board draws the whole training loop: loss, slope, step, repeat. This lesson takes the smallest slice of it, one neuron with one input and one target, and runs the loop by hand with real numbers until “gradient” stops being a word and becomes a direction you can point at.

Before you start. You need How It Learns (loss, gradient descent, backprop), which gave you the loop: boil wrongness down to one number called the loss, find each dial’s slope, and step every dial against its slope by an amount the learning rate sets. From What a Neural Network Is you need one more thing: a neuron multiplies its input by a dial called a weight, adds up the result, and passes the total on.

Lesson 5 of 83 in AI

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 1960, Stanford: a neuron whose weights were knobs you turned by hand
  • The shower tap: one weight, and a loss that says how cold
  • The sigmoid: a mixer that only runs from all-cold to all-hot
  • The derivative: nudge the tap, feel the change, divide
  • Turning the tap, a hundred times: the gradient doing the work
  • The shower as a hill you can see
  • How steep is the mixer where you stand?
  • One turn of the tap, by hand
  • The board’s one line, in shower words
  • A hundred turns, each one smaller
  • Two changes to the shower
  • All of it in code

Terms it explains: How It Learns, weight, bias, sigmoid, derivative, gradient, vanishing gradient, automatic differentiation, backpropagation, batch / mini-batch, convergence, epoch, generalization, gradient descent, learning rate, loss / cost function, optimizer (SGD/Adam), overfitting, parameters/weights, regularization, step, validation set / early stopping.

Lab

Every step of training walks the dials downhill. How far should each step go?

Drag How far each step goes from 0.001 up to 0.5 and watch Steps to a loss under 0.01 fall, then vanish.

Open The learning rate

Related paper

Review AI