2. Let the computer pick
Same program, same four examples. Every value of X gives some number of mistakes.
X = 10:
15°
15 > 10? yesprogram: hot
should be: not hot
✗
22°
22 > 10? yesprogram: hot
should be: not hot
✗
28°
28 > 10? yesprogram: hot
should be: hot
✓
33°
33 > 10? yesprogram: hot
should be: hot
✓
How many mistakes?
X = 24:
15°
15 > 24? noprogram: not hot
should be: not hot
✓
22°
22 > 24? noprogram: not hot
should be: not hot
✓
28°
28 > 24? yesprogram: hot
should be: hot
✓
33°
33 > 24? yesprogram: hot
should be: hot
✓
How many mistakes?
Try every X
Checking one X at a time is slow. A computer can check every X and keep the one with the fewest mistakes.
mistakes
01234
101520253035
XClick the bar at X = 30. How many mistakes?
Where does “hot” start?
Every X from 22 to 27 gives 0 mistakes. X is where “hot” starts. Try a temperature that isn’t in the examples: 25°.
With X = 22, is 25° hot?
With X = 27, is 25° hot?
What just happened
- Each
Xgives a number of mistakes. In ML this number is the loss. - Training = finding the
Xwith the smallest loss. The computer did it; nobody touched the slider. - Several
Xhave loss 0. The examples don’t say where between 22° and 28° “hot” starts, so the answer for 25° depends on whichXtraining picked.
Trying every value works for one number. An LLM has billions of them, so it needs a smarter way. That comes later.