Junior Codes
Teach Pip with Examples

How to Test an AI Model: Explained for Kids

Check a model on fresh examples, kept back from training.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Testing a model, explained simply

After training, you need to know whether the model actually learned the pattern or just memorised its examples. The only fair way is to test it on examples it has never seen before.

So before training, data scientists set aside part of their data as a test set, also called held-out data. The model never trains on it. Afterwards they count how many test examples it gets right.

Testing with the same examples used for training is like marking a spelling test where the pupil saw the answers beforehand. The score looks great but tells you very little.

Example: A fair test

  • You have 50 labelled photos of cats and dogs.
  • Keep 10 aside and do not show them to the model.
  • Train on the other 40.
  • Test on the hidden 10: if it gets 9 right, that is a much more honest score than testing on the 40 it already saw.

Try this

  • Teach a family member to recognise three kinds of bird from a few pictures. Test them with the same pictures, then with new pictures of the same birds. Which score is more honest?
  • Split a pile of cards into "study" and "test" piles before playing a guessing game.
  • Think of a test result that looked perfect but was not fair. What made it unfair?

Practise it in Wonderwild

“Put your model to the test” and “Keep a surprise for the model”

Discovery 3 and Discovery 10 in Teach Pip with Examples, one of 24 AI discoveries in Wonderwild.

Your child trains, tests and questions a small model in the browser with Pip. No coding needed. For ages 7+.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Questions parents and kids ask

What is the difference between training data and test data?+

Training data is what the model learns from. Test data is kept separate and used only to check how well the model handles new examples.

What does accuracy mean for an AI model?+

Accuracy is the share of test examples the model got right, such as 90 out of 100. It is a useful start, but later Wonderwild discoveries show why one number never tells the whole story.

Prefer learning with a teacher?

Our live AI Explorers course teaches these ideas in small online classes led by a software engineer, with projects and feedback. Every live course also includes 12 months of full Wonderwild access for practice.

See the AI Explorers course