Artificial intelligence · Grades 9–12
Training, validation and honest testing
The model fits its parameters on training data. Success there does not alone demonstrate generalization to new cases.
Prerequisites
Fractions, tables and basic prediction tasks.
Study notes
Training
The model fits its parameters on training data. Success there does not alone demonstrate generalization to new cases.
Validation
Validation data supports choices such as model type, thresholds and hyperparameters. Repeated choices can overfit the validation process.
Testing
A held-out test set assesses the selected procedure. Do not repeatedly tune against it while continuing to call it untouched.
Metrics
Choose metrics that reflect important mistakes. Accuracy alone can hide failures on rare classes or specific groups.
Worked examples
Which dataset primarily fits model parameters?
Parameter fitting uses the training examples.
Training data
What is a usual purpose of validation data?
Validation supports model selection, not independent final assessment after repeated tuning.
Choose settings and compare candidate models
Check your understanding
A classifier gets 90 of 120 test examples correct. Find accuracy as a fraction.
What happens if test performance repeatedly guides tuning?
- The test is no longer an untouched evaluation
- Its size doubles automatically
- The test gets more independent
- All leakage disappears
Why can 99% accuracy be unhelpful when only 1% of cases are positive?
A baseline makes 20 errors and a new model 15 on the same 100 cases. How many fewer errors are observed?
Answers and marking guidance
Answers and marking notes
- 0.75
90/120=0.75.
- The test is no longer an untouched evaluation
Decisions based on test results leak information into selection.
- Predicting every case as negative would get 99% accuracy while missing all positives. Additional metrics and error costs matter.
Credit the majority-class baseline and missed positives.
- 5
20−15=5; statistical confidence requires further analysis.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.