1. Pick a number
A program decides whether it’s hot outside. Its code is already written:
if temperature > X:
print("hot")
else:
print("not hot")
Nobody knows X. All we have are four examples with the right answers.
Move X until every card shows ✓.
X = 10°What X did you get?
Is it the only X that works?
What you just did
Xis a parameter: a number in the program that nobody wrote by hand.- The examples with known answers are training data.
- Picking
Xso the program gets the examples right is training.
Answer the questions to go on.2. Let the computer pick →