Standalone lesson.
Lesson 1164 of 1169
Teach a Computer with Examples
Train a simple picture classifier with your own examples.
Explorers · Explorers · ~15 min read · Interactive
In the last lesson you trained a tiny apple-or-banana classifier by moving a dot. Real AI learns the same way — but with millions of examples instead of ten. Let’s understand what was actually happening.
Labels are the secret
Every example you added had a label — “apple” or “banana.” Labels tell the AI what the answer is. Without labels, the AI has no clue what it’s looking at.
Lots of tiny rules
The AI doesn’t write one big rule. It writes lots of little ones, adjusting every time you add an example. The more examples you give it, the better its rules get.
What goes wrong
- Not enough examples. The AI guesses badly.
- Unfair examples. If you only train it on red apples, it thinks a green apple is a banana.
- Mislabeled examples.Feed it ten bananas accidentally labeled “apple,” and it learns the wrong lesson.
This matters for big AI too
When you hear about an AI being biased, it’s usually because its examples were biased. Garbage in, garbage out — that’s the oldest rule in computer science.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Creators · 11 min
Using AI to Write Museum Exhibit Labels
Produce concise, accessible exhibit labels at multiple reading levels.
Explorers · 12 min
A Shopping List That Knows the Store
Some apps use AI to sort your grocery list by aisle, and even guess what you forgot.
Explorers · 15 min
How Machines Learn From Examples
Imagine teaching a puppy to sit by showing it again and again. That is a lot like how we teach computers to learn.
