Level 2 · Module 7 · 10 minutes
Classification: choosing a category
- Describe classification as predicting a category.
- Explain the trade-off between false alarms and missed cases.
- Explain why a model's score is not the same as certainty.
Classification predicts which category a case belongs to. The categories are decided in advance: unwanted or normal, will pay on time or late, damaged or undamaged, urgent or routine. The model learns from labelled examples and then assigns new cases to one of the choices.
Scores and thresholds
Most classifiers do not simply announce a category. They produce a score for each possible label, and a cut-off decides the final answer. A message might score as likely unwanted, and the team chooses the cut-off at which it is moved out of the inbox.
That cut-off is a business decision, not a technical detail. Move it one way and more genuine messages are lost; move it the other and more unwanted messages get through. The model did not choose the cut-off. People did.
Two kinds of mistake
- A false alarm: the model says yes when the answer is no. A genuine customer is treated as a fraud risk and must prove their identity.
- A missed case: the model says no when the answer is yes. A real problem passes unfiltered.
These usually move in opposite directions. Tightening the system to catch more problems also raises false alarms. Which is worse depends on the situation. A screening test may tolerate false alarms to avoid missing a serious case, while an automated penalty should not act on a guess.
Rare classes
Some important categories are rare. If almost no cases are positive, a model that always says no gets most cases right and is still useless, because it misses every case that matters. Judging such a model by overall correctness alone hides its failure. It is better to ask two separate questions: how often does it catch the real cases, and how often does it raise a false alarm?
Uncertainty is real
A score described as likely is not a promise. A classification model can be confident and wrong, especially on cases unlike its training data. Keep human review for decisions with serious consequences, and check how the model behaves for each group of cases.
Real training versus the exercise
A classroom activity where you sort example messages into categories by hand is a rehearsal of labelling and decision-making. No model is trained. A real classifier exists only after software has been trained on many labelled examples and its performance has been measured on data it did not see.
Common misconception
A classifier that predicts a category is telling you the true category with certainty. A classifier returns a best estimate from learned patterns. It can be confidently wrong, especially on unfamiliar cases, and its score is not a guarantee. Human review and honest measurement are still needed.
Guided practice
Choose a decision that sorts cases into two groups, such as urgent or routine, damaged or fine. Write two examples where a false alarm would be costly and two where a missed case would be costly. Then decide which mistake the system should lean away from, and explain why in two sentences.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem