What you’ll learn
- Explain train, validation and test sets
- Recognize overfitting and data leakage
- Design a test beyond the happy path
Keep a genuinely new test
Training data is used to learn. Validation data supports development decisions. A separate test set helps assess performance on examples not used for those decisions. Repeatedly tuning against the same test can gradually turn it into another development set. Data leakage occurs when information unavailable in real use sneaks into training or evaluation, making the score look better than the actual task allows.
Memorization is not generalization
Overfitting describes a model doing well on training examples but poorly on new ones. A dataset can also miss the people, devices, languages or conditions the finished system will encounter. A high average score can hide important failures for smaller groups. You need to know what was measured and whether the examples represent the actual use case.
Build a useful test sheet
For a fictional garden-message sorter, include a clear delivery notice, an ambiguous request, a misspelled message and a message in a supported second language. Record the expected handling and the cost of each mistake. An honest “needs review” may be preferable to a confident wrong category. Compare against a simple baseline and track changes over time, rather than collecting one impressive screenshot.
PUT IT INTO PRACTICE
Your small experiment
Create five test cases for your chosen task: two normal, one ambiguous, one incomplete and one outside scope. Define the desired response before testing.
Evaluate representative unseen examples and consequential errors, not just a favourable average.
Make the idea yours.
Choose an answer for every question. You can review explanations and try again.
Answer both questions to check your understanding.Learning checks are for practice. This is not an accredited qualification or professional certification.Sources & further reading
Use these references to check the ideas and explore further. Examples and practice questions are original course material.
Reviewed November 16, 2026. General education, not professional advice or an accredited qualification.