Class 10 · Unit 2: Modelling · Lesson 2.1 · 40 min
AI, ML and DL, and the words for data
The washing machine box says “AI”. Is it lying?
Today you will: Tell AI, ML and DL apart · Point to the features and the label · Say what training and testing data are for
Story
The new washing machine arrives at Rahat's house with a sticker across the front in gold letters: AI WASH.
Rahat: “It's intelligent. It knows how dirty the clothes are.”
Hiba: “How?”
Rahat: “A sensor. It measures how cloudy the water is, and if it's cloudy it washes longer.”
Hiba: “So somebody wrote a rule: cloudy means longer. Does it get better at washing after a year?”
Rahat reads the sticker again. "It doesn't say that."
Hiba: “Then it might be AI. But it isn't learning anything.”
Watch
Three circles, and the words for data — — scan code 10.2.1 in the printed book.
Learn it
"AI" on a box tells you very little. Picture three circles, one inside the other. Artificial intelligence is the biggest: any way a machine mimics human intelligence, even rules a person typed in. Machine learning sits inside it: machines that improve from experience. Deep learning sits inside that: learning from huge amounts of data through many layers. This unit is about the middle circle, and that starts with the words for data.
Words to know
- Artificial intelligence (AI) any technique that lets a machine mimic human intelligence, including rules a person wrote.
- Machine learning (ML) machines that improve at a task by learning from data, not from rules typed in.
- Deep learning (DL) machine learning from huge amounts of data through many layers, like reading handwriting or recognising faces.
- Example one row of a dataset, such as one apple.
- Feature a column the model looks at, such as weight or how red.
- Label the column the model must learn to predict, such as the variety.
- Labelled / unlabelled data with the label filled in, or without it.
- Training data set the examples a model learns from, like a teacher's worked examples.
- Testing data set examples kept back to check the model, like the class test.
Step by step: reading a dataset of walnuts
| walnut | weight_g | shell | kernel_colour | grade |
|---|---|---|---|---|
| W01 | 14 | thin | light | A |
| W02 | 9 | thick | dark | C |
| W03 | 12 | thin | light | A |
- Each row is an example: one walnut.
walnutis a name tag, not a feature. It tells the model nothing about quality.- Features:
weight_g,shell,kernel_colour, the columns the model may look at. - Label:
grade, the answer to predict. - Split it: most rows for training; keep some back for testing, with the grade hidden.
Placing a system in the circles: ask one question, does it get better from examples, or follow rules someone wrote? Rules only → AI. Learns from examples → ML. Learns from huge data like photos or speech → DL.
Careful: a model must never see the testing examples while it learns, or the test only checks its memory.
On the laptop
You need: LibreOffice Calc · ai-ml-dl.ods · datasets/apples.csv
Mission 1: Three circles (8 min, in pairs)
- ☐1
Open sheet Systems in
ai-ml-dl.ods. For each of the ten systems, write AI, ML or DL — the smallest circle it fits in. - ☐2
Use one question: does it get better from examples, or does it follow rules someone wrote? Rules only → AI. Learns from examples → ML. Learns from huge data, like photos or speech → DL.
Mission 2: The anatomy of a dataset (10 min, in pairs)
- ☐3
Open
apples.csvin Calc. - ☐4
Colour the feature columns blue and the label column yellow. Leave
applewhite — it is a name tag, not a feature. - ☐5
Predict: which one feature do you think best tells an Ambri from the other two? Write it in H1.
- ☐6
Sort by that feature and look down the
varietycolumn. Did the Ambris bunch together? Try one other feature and compare.
Mission 3: Training and testing (5 min)
- ☐7
Copy apples A01–A28 into a new sheet named Training, and A29–A36 into Testing.
- ☐8
Hide the
varietycolumn in Testing. You have just made unlabelled data. In H3, write why a model must never see the testing apples while it learns.
Finished early?
Invent a fifth feature a farmer could measure for every apple. Would it help tell the varieties apart — and would it be easy to collect for 36 apples?
No laptop today?
Your teacher reads the ten systems; the class shows one, two or three fingers for AI, ML or DL.
Then copy the first four rows of apples.csv from the board and label each column feature,
label or name tag.
Debate it
The washing machine's sticker says AI, and by CBSE's definition it is allowed to.
- Should a company be allowed to put "AI" on something that never learns? What would you want the sticker to say instead?
- Why might a company want the word on the box?
Check yourself — practice, not a test
1. Match each system to the smallest circle it fits in:
A chess program whose rules were typed in by its makers · A spam filter that learns from emails people marked as spam · A phone that learns to read handwriting from millions of samples
Match with: DL · AI · ML2. In apples.csv, what is variety?
- ○ A feature
- ○ The label
- ○ A name tag
- ○ The testing set
3. Deep learning is a kind of machine learning.
- ○ True
- ○ False
4. The examples a model learns from are called the ______ data set.
5. Why is the testing data kept away from the model while it learns?
- ○ It is too big to use
- ○ It has no features
- ○ So we can check the model on examples it has never seen
- ○ Testing data is always unlabelled
Remember
Features are what it looks at. The label is what it must learn to say.
Typing practice
Skill: column names, fast and exact (5 min)
-
On typing.com: the symbols lessons.
-
Type three times, eyes on the screen:
apple,weight_g,red_percent,sweetness_brix,shape_ratio,variety -
Underscores need Shift. Commas, no spaces. Goal this term: 38–44 WPM at 95%.