Yesterday the Robot’s Scale had weights chosen by us. In a real AI, though, there are huge numbers of weights and nobody chooses them one by one: the model finds them during training, one small step at a time. Today we try it with a game!
🧒 For Mini Heroes (ages 6-10) · read with a grown-up
Have you ever played “hot and cold”? Someone hides an object and helps you find it: “Cold!” if you’re far away, “Warm!” if you’re getting closer. You take a step, listen, and take another one.
The Robot learns in a similar way. It tries an answer, someone measures how wrong it was (that’s called the error) and it adjusts its weights a tiny bit. Then it tries again. Lots and lots of times.
And the steps? If they are tiny, the Robot takes ages to get there. If they are giant, it jumps back and forth and never stops in the right place. It needs the right step!
🧑🎤 For Young Heroes (ages 11-17)
In machine learning the error is called loss: a number that tells you how far the model’s predictions are from the real values. Distance counts, not direction: if the model says 2 and the real value is 5, the distance is 3. The goal of training is to make the loss as small as possible.
The method is called gradient descent: you start with random weights close to zero, calculate the loss, work out which direction to move the weights and bias to reduce it, move them a little and start again. When more rounds don’t lower the loss any further, the model has reached convergence. If we drew the path, it would look like a ball rolling down a hill and stopping where there’s no more downhill.
How long each step is depends on the learning rate: a number chosen by whoever trains the model, a hyperparameter (weights, instead, are parameters that the model calculates itself). If the learning rate is too low, it takes a huge number of rounds. If it’s too high, the model never converges: it bounces around the best values. There’s no perfect value for everyone: it depends on the problem and the data.
A real example from a free course: with seven data points on cars’ fuel efficiency, in the course’s table the loss drops from 303.71 in round 1 to 42.17 in round 6. The graph of the loss round after round is called a loss curve: in today’s game you’ll draw one yourselves!
👨👩👧 For Super Parents & Grandparents
The message for grown-ups: an AI doesn’t “study” like a student. During training it changes its internal numbers (the weights) to be a little less wrong on the examples we give it, one step at a time.
But careful: an error of zero isn’t necessarily good news. The course we cite explains that a loss of 0 is usually a sign of overfitting, the model learning by heart, like our Memory Robot. That’s why a model must always be tested on new examples too.
To use at home: when you help children learn something, try giving a “kind error” with a direction (“almost there, a bit higher”) instead of a plain “wrong!”. It’s the same trick as today’s game.
🎲 The Robot’s Step
Age: 6+, with a grown-up · Time: about 20 minutes · Players: 2 or more (one Coach and one Robot; in a group, Robots take turns or play in teams) · You need: a long sheet of paper (or two sheets taped together), a pencil, a bottle cap as a counter, a slip of paper for the secret number
- Draw a strip of 21 boxes and number them from 0 to 20. The bottle cap starts on box 0.
- The Coach secretly writes a secret number between 11 and 15 and folds the paper: it’s the “right weight” to find.
- The Robot makes one move at a time. After each move the Coach only says the error and the direction, for example “Error 5, go up” or “Error 3, go down”. When the error is 0 they say “Arrived!”. The Coach (or a helper) writes each error on a sheet, one under the other: that’s the loss curve. The grown-up is the Coach first; when it’s the child’s turn, they find the error by counting the boxes between the cap and the secret number.
- Round 1 – Ant Step: the Robot always moves 1 box. 10 moves at most. Does it make it? (With a number between 11 and 15, no: too slow!)
- Round 2 – Giant Step: start again from 0 and always move 8 boxes. 10 moves at most. What happens? (It bounces between 8 and 16 and never arrives!)
- Round 3 – Right Step: start again from 0 and move half of the error, rounding up. Here’s the table: error 1 or 2 → step 1; error 3 or 4 → step 2; 5 or 6 → 3; 7 or 8 → 4; 9 or 10 → 5; 11 or 12 → 6; 13 or 14 → 7; 15 → 8. How many moves does it take? (With a number between 11 and 15, always 4!)
- End of the game: put the three lists of errors side by side. Which one gets down to 0 the fastest? Then swap roles with a new secret number.
💡 Moral: an AI learns one little step at a time, looking at how wrong it was. Steps too small: very slow. Steps too big: it never gets there. The length of the step is chosen by the people who train it.
🔍 Mini challenge
Screen-free, for teens and grown-ups: try a “Half-Giant” Step of 5 boxes. Does it arrive or bounce? (It depends on the secret number: with 15 it arrives in 3 moves, with 11, 12, 13 or 14 it bounces between 10 and 15.) Then draw the loss curves on squared paper, with moves across and error up the side: it’s exactly the graph people use to see whether training is working.
📚 Sources
- Google for Developers, Machine Learning Crash Course – “Linear regression: Loss”: what loss is, distance not direction (the 2 and 5 example), the goal of reducing it
- Google for Developers, Machine Learning Crash Course – “Linear regression: Gradient descent”: the steps of gradient descent, random starting weights near zero, convergence, loss curve, the ball rolling down a hill, the table from 303.71 to 42.17, a loss of 0 as a sign of overfitting
- Google for Developers, Machine Learning Crash Course – “Linear regression: Hyperparameters”: hyperparameters vs parameters, learning rate too low (too many rounds) or too high (never converges, bounces around), no ideal value for everyone
- Normattiva – Italian Law no. 132 of 23 September 2025, art. 4 (in Italian; paragraph 4: parental consent for children under 14)
