Class 10 · Unit 0: Refresher · Lesson 0.1 · 40 min
Back at the laptop
Last year you got top marks for a model nobody ever tested. Was it any good?
Today you will: Set up your Class 10 folder · Predict a program before you run it · Ask of last year's project: does it work?
Story
Hiba has last year's project printed and folded into her Physics book. The title is underlined twice: An early warning for the Nowgam road.
Rahat: “It was a good proposal. We got the best mark in the class.”
Hiba: “It was a good proposal. Page four. 'Our model would predict which mornings the road floods.' Would. We never built it. We never tested it. We don't know if it's right once in ten.” (She opens it on the desk.)
Rahat: “We said it was rule-based. We wrote the rules.”
Hiba: “We wrote rules. We never checked them against a single real morning. Last year we learned to ask what is the problem? This year the question is harder.” (She taps the page.)
Rahat reads the underlined title again. "Which is?"
Rahat: “Does it work — and how would we know?”
Watch
Back at the laptop — — scan code 10.0.1 in the printed book.
Learn it
Class 9 asked can I say exactly how it would work? Class 10 asks the harder question: does it work, how well, for whom, and who answers for it when it does not? A model nobody has measured is a hope, not a result. The year runs ethics first, then how models are built, how they are measured, and two domains up close (pictures and language), ending with a project that must pass all of it.
Words to know
- Evaluation the stage of the AI project cycle that checks how well a model works, on cases it has never seen.
- Tested model a model whose predictions have been checked against real outcomes. Until then, it is a hope.
- Predict, then run writing down what a program will do before running it. A wrong prediction shows exactly which part of your picture needs fixing.
- Trace following a program line by line on paper, keeping track of each variable's value.
Step by step: tracing before running
marks = [60, 75, 90]
total = 0
for m in marks:
total = total + m
print(total / len(marks))
- Start:
totalis 0. - First time round:
mis 60 →totalbecomes 60. - Second:
mis 75 →totalbecomes 135. - Third:
mis 90 →totalbecomes 225. - The print:
len(marks)is 3, so 225 ÷ 3 = 75.0. Write that down, then run it, and see if Python agrees.
Asking "does it work?" of last year's project: what does the model predict? Did we ever test it? On how many real cases? Who could it be wrong about? An honest "never tested" is the start of this year's work, not a failure.
Last year's words still count: the six stages of the cycle, True and False Positives and Negatives, bias and access. Python is a tool this year, used where it beats a spreadsheet.
Careful: good marks for a proposal are not proof that the model works. Only testing on real cases can tell you that.
On the laptop
You need: File Manager · Thonny · LibreOffice Calc · typing.com
Mission 1: Your folder (2 min)
- ☐1
In the
Class-10folder, openmy-workand make a folder named with your roll number only, e.g.10-roll-12.
Mission 2: Predict, then run (8 min)
- ☐2
In Thonny, open
programs/refresher.py. Don't run it yet.temps = [4, 7, 2, 9, 3] total = 0 for t in temps: total = total + t print(total / len(temps)) - ☐3
Predict: write the exact output on paper.
- ☐4
Run it. Same as your prediction? If not, find the line where you and Python disagreed.
- ☐5
Add
-2to the list. Predict again, run again. Save a copy in your own folder.
Mission 3: Does last year's project work? (6 min)
- ☐6
Open your Class 9 project. In Calc, make one row under these headings, and fill it honestly: Our model · What it predicts · Did we ever test it? · On how many real cases? · Who could it be wrong about?
- ☐7
Save it as
does-it-work.ods. Keep it — it comes back in Unit 3.
Mission 4: Typing baseline (5 min)
- ☐8
Log in to typing.com with your new card. Take the one-minute test and write your WPM, accuracy and Term 1 goal on the card.
No laptop today?
Copy the program onto paper. Everyone predicts; then one student traces it on the board,
keeping total in a box and crossing out each old value. Fill the does-it-work row on paper.
Debate it
Hiba's group got top marks for a model nobody ever tested.
- Was that mark fair? What was it really a mark for?
- If the town had used their flood warning, untested, for one winter — who would have found out whether it worked, and how?
Check yourself — practice, not a test
1. What will this print? python nums = [2, 4, 6] print(len(nums))
- ○ 2
- ○ 3
- ○ 6
- ○ 12
2. nums already holds [4, 5, 6]. Put these lines in order so the program prints 15 (in the real program, the line inside the loop is indented):
- 1. for n in nums:
- 2. total = 0
- 3. total = total + n
- 4. print(total)
3. A model that has never been tested on real cases can still be called finished, as long as its rules were written carefully.
- ○ True
- ○ False
4. The stage of the AI project cycle that checks how well a model works is called ______.
5. Which folder name follows our privacy rule?
- ○ rahat-10A-nowgam
- ○ 10-roll-04
- ○ rahat-lone
- ○ bilal10
Remember
A model nobody has measured is not finished. It is a hope.
Typing practice
Skill: code symbols, at speed — ( ) [ ] { } : " ' = _ # (5 min)
-
On typing.com: the symbols lessons your teacher sets.
-
Two new ones this year:
{ }for a Python dictionary, and#for a comment. -
Type three times, eyes on the screen:
counts = {"good": 3, "bad": 1} # a dictionary -
Goal by May: 38–44 WPM at 95%. Beat your own score, not anyone else's.