Learning from examples
Instead of writing down rules for AI, we show it lots of examples. This is called machine learning.
Story
Every time Mina’s little brother sees a dog, he shouts, “Doggy!” Nobody ever told him, ‘A dog has ears like this and a tail like that.’ He just came to know after seeing many dogs. learns in exactly the same way.
Let’s learn
It is hard to explain a dog with words alone. If you say ‘it has pointy ears,’ you miss the dogs with floppy ears. So instead of rules, we show AI examples.
- We put a label on each photo, like ‘dog’ or ‘cat.’
- We show it a great many labeled photos.
- The AI finds what is alike in the photos by itself.
- Then we give it a photo it has never seen and let it guess.
Learning from examples like this is called . The name says just what happens: a machine learns. A person knows a dog after seeing one just a few times, but AI has to see thousands or tens of thousands of photos.
At a glance
-
Put on labels
-
Show many examples
-
Find what is alike
-
Guess a new photo
In simple words
You cannot learn to ride a bike from a book alone. Your body learns as you ride again and again. In the same way, AI learns as it sees examples again and again.
Try it
Play a game where your friend becomes the AI.
- Make up the word ‘blip’ and decide, as your own secret, what a blip is (for example, things that are red and round).
- Show your friend things one at a time and say only “That’s a blip” or “That’s not a blip.”
- After about ten things, show a new one and let your friend guess whether it is a blip.
- Did your friend work it out from the examples alone, without hearing the rule?
Quiz
If the sentence is right, choose [True]. If it is wrong, choose [False].
-
1To teach AI what a dog is, we show it lots of dog photos.
That’s right!
Not quite. Read the reason.
It looks at many labeled photos and learns by finding what is alike.
-
2AI knows dogs perfectly after seeing just one photo.
That’s right!
Not quite. Read the reason.
AI needs far more examples than a person does. Sometimes it has to see thousands of photos.
-
3Learning from examples is called machine learning.
That’s right!
Not quite. Read the reason.
A machine is doing the learning, so it is called machine learning.
Correct answers / 3
Remember
- We show AI examples instead of rules.
- We put labels on the examples.
- Learning this way is machine learning.
Today’s words
Tap a word to see what it means.
Go deeper
These pages are for older students and grown-ups. Read them together with a grown-up.