Computer science
How does a neural network learn from mistakes?
Start with one neuron guessing taxi fares: guess = w × km. When it's wrong, it nudges w and tries again. Chat AIs learn the same way, with billions of w's.
In this lesson
A 2 km ride really costs 6. The neuron starts at w = 1.
Your notebook page
- Guess, then measure the error.
- Nudge the weight to shrink it.
- Repeat over many examples.
- Rate too big: overshoots.
Where you'll see it today
Face unlock getting better at your face, a spam filter learning from “not spam”, a keyboard learning your slang.
The course
Build your own ChatGPT
Every lesson adds a part. Finish them all to build the Pocket chatbot.
- 1Next wordsHow does ChatGPT pick the next word?
- 2Keyboard guessesHow does your keyboard guess your next word?
- 3TokensWhy does ChatGPT chop words into pieces?
- 4Meaning mapsHow does AI know “king” is close to “queen”?
- 5AttentionHow does AI know what “it” means?
- 6Learning from mistakesHow does a neural network learn from mistakes?
- 7TemperatureWhy does ChatGPT sometimes make things up?
- 8Build the chatbotCan you train a mini chatbot?
