Caffeinated Coder
Book an appointment
Lesson S2 · Special topics

How machine learning works

Instead of writing the rule, let the computer learn it from examples. Follow a model with a single weight as it learns the price of a coffee from three receipts: it predicts, measures its error as a loss, and uses gradient descent to tilt its line step by step until the loss is almost zero. Then see how the same loop scales up to neural networks, why models are judged on test data, and what a large language model is predicting.

12 min10 steps5 questionsIntermediate
Fig S2 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.