Overfitting playground
Held-out quiz and a friend’s new examples
Evaluation means measuring on examples that did not train the model — a sealed quiz, or a friend who brings different cases.
1Learn the idea
Read
Evidence that counts
Useful evaluation for overfitting questions:
- Held-out quiz (validation) — labeled examples kept aside while fitting.
- Final test — used rarely, after you stop knob-twisting.
- Friend tries different examples — new phrasings, new gym lighting, new handwriting; a social check that your notebook was not the whole world.
Report train and validation together. A lone 99% is incomplete evidence. Prefer the pair 93/91 over 99/84 when the gap shrinks and the task still matters.
Read
How to run a fair club eval
- Split before training; write the split rule in the notebook.
- Compute generalization gap = train − val (example start: 0.99 − 0.84 = 0.15).
- Decide an acceptance rule in advance: “ship if val ≥ 90% and gap ≤ 5 points,” not “ship if the demo looks cool.”
- After one friend trial set, note domain shift: their examples may be harder; that is information, not sabotage.
Read
What evaluation does not prove
A good val score on 40 club messages does not prove city-wide spam performance. Say the denominator. Say who labeled the answers. Say whether the friend set overlapped practice.
Read
Decision rules
- Prefer measured baselines over persuasive screenshots.
- Keep versions so you can reproduce the score.
- Abstain from big claims when evidence is outside your contract (tiny n, samey data, peeked test).
Read
Friend-protocol details
Ask a partner to bring ten examples you have not ranked yet. You score them once, record train/val/friend numbers, and resist the urge to immediately retune until the friend set also looks perfect — that would recreate the failure mode from the previous page. Thank them for hard examples; difficult cases are gifts.
Write the evaluation contract before you see results: metrics, minimum validation score, maximum gap, and a clear “we will not claim…” line. Afterward, compare results to the contract without moving the goalposts. If you must change the contract, say so explicitly and treat it as a new experiment version, not a silent rewrite of history.
Go deeper
Before you start
Why this matters
Before reading further, write how you would test a “spam?” toy without cheating: Who holds the sealed examples? When do you look? What two scores will you report? Keep the plan; compare it to the method below.
Related lessons
Check your understanding
Page assessment
Answer from memory. Completion is saved from this evidence, not from opening the next page.
All responses are required.