Artificial intelligence · lesson 3 of 4
Training, validation and honest testing
The model fits its parameters on training data. Success there does not alone demonstrate generalization to new cases.
Learn the ideas
Prerequisites: Fractions, tables and basic prediction tasks.
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
8 questionsDecimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.