Learning outcomes
After this lesson, you will be able to:
- Explain why model evaluation is distinct from model training.
- Distinguish performance on training data from expected performance on new examples.
- Translate a practical task into success criteria and acceptable errors.
- Explain why one metric is insufficient and why metrics depend on context.
- Describe a basic fair evaluation protocol and the limits of its conclusions.
1. Training does not answer every question
During training, an algorithm adjusts model parameters to reduce a chosen loss on training data. A low training error alone does not show that the model will be useful beyond those examples.
Training asks: “How can we build a model from the available data?” Evaluation asks: “How does this model behave on data representing its intended use?” These are different stages and require different evidence.
For example, a defect detector may classify training images almost perfectly but perform poorly on photographs from another factory, where lighting, cameras, angles, and surface types differ. Training results do not replace this transfer check.
2. Define success before choosing a metric
There is no single universal meaning of “quality.” In one task, missing a dangerous case matters most; in another, too many false alarms are costly; in a third, the magnitude and direction of numerical forecast errors matter.
Evaluation therefore starts not with a popular metric, but with the decision that will be made from the prediction. Identify the user, target situation, consequences of errors, acceptable delay, and resource constraints.
In medical screening, missing a potentially serious case may be more costly than sending an extra person for review. In spam filtering, blocking an important message may be worse than allowing a few advertisements through. For demand forecasting, both error size and planning horizon matter.
Model quality is the extent to which model behaviour meets the requirements of a specific task and its conditions of use.
3. A metric is a measuring instrument, not the goal
A metric turns model outputs into a number or a set of numbers. It helps compare model versions, but it does not describe the whole system or make a decision on a user's behalf.
A single metric can hide the structure of errors. Two models may have the same share of correct predictions yet fail on different groups or produce different balances of false positives and false negatives. The same average regression error can also hide rare, very large misses.
In later lessons, we will study the confusion matrix, Accuracy, Precision, Recall, F1, ROC-AUC, and Precision-Recall AUC, followed by class imbalance and regression metrics. For now, remember the principle: choose metrics for the task and interpret them in context.
4. Error costs and decision thresholds
A model often produces a score or probability, while a product turns it into an action: raise an alert, send a case for review, or reject a transaction automatically. A decision threshold controls that conversion.
Changing the threshold usually changes the balance between error types. A more cautious threshold may reduce missed cases while increasing false alarms. A threshold is therefore not merely a technical setting; it is part of a decision policy.
Before deployment, map the consequences: who is affected, how serious the error is, whether the decision can be reversed, and who reviews it. When error costs are asymmetric, average performance may not be a sufficient criterion.
5. What a fair evaluation looks like
Evaluation should use data that were not used to fit model parameters or select a configuration. Lesson 1.2.4 introduced the roles of train, validation, and test; here we use that separation as the foundation of a protocol without repeating the mechanics of splitting.
A practical sequence is: define the use case; specify outcomes and error costs; select relevant metrics; establish a baseline; tune only on permitted data; run a final check on an independent test set; and record the model version, data version, settings, and results.
A baseline is not a formality. If a complex system does not outperform a simple reasonable alternative, the extra training, operational, and explanation costs may not be justified. Compare models on the same data under the same protocol.
6. What evaluation does—and does not—prove
An evaluation result is evidence about model behaviour on a particular dataset under a particular protocol. It is not a guarantee of error-free performance in every future condition.
The strength of the conclusion depends on sample representativeness, sample size, label quality, independence of observations, and similarity between the test environment and deployment. Users, hardware, human behaviour, or data collection may change after launch.
Evaluation therefore continues after deployment: monitor quality using available feedback, distribution changes, complaints, manual reviews, and cases that should be escalated to a person. This is system monitoring, not a repeat of the original test.
Practice: create an evaluation brief
Choose one task: factory defect detection, spam filtering, or daily demand forecasting. Write an evaluation brief: (1) who uses the prediction; (2) what action follows; (3) which two error types are possible; (4) which error is more costly and why; (5) which two metrics you will study next; (6) what baseline you will compare against; and (7) what may change after deployment. Do not calculate metrics yet—the goal is to justify an evaluation plan.
Lesson takeaways
We evaluate models not to obtain a single impressive number, but to test their suitability for a particular decision. A sound evaluation begins with the task, considers the consequences of errors, uses independent data and a baseline, and limits its claims to the conditions of the experiment. Next, we will learn to represent classification outcomes with a confusion matrix.
Sources and further reading
Lesson glossary
A procedure for checking how well a model performs a task on data not used to fit it.
A measurable indicator used to describe one aspect of model performance.
A simple or existing method used as a reference under the same evaluation conditions.
A boundary that converts a model score into a class or action.
The extent to which evaluation data reflect the conditions and cases expected in use.
Self-check
Choose an answer and select “Check answer”. Explanations appear after checking.
Question 1
What does model evaluation check?
Question 2
Why is high training accuracy insufficient?
Question 3
What should guide metric selection?
Question 4
Two models have the same Accuracy. What can we conclude?
Question 5
Why compare a model with a baseline?
Question 6
What may happen after deployment?
Question 7
True or false: a successful test-set evaluation guarantees error-free performance in every future condition.