Skip to content
AI-grafen
BInvestigatorClassical machine learning· about 25 min· fundamentals that rarely change· verified 2026-09-20· EN

Classification: how a model sorts information

Be able to explain what a classifier does, read how well it performs, and reason about why it makes mistakes on certain examples.

Prerequisites

Everyday explanation

A classifier is a model that sorts information into categories. For example: spam or important email, approved application or rejected, or whether a transaction is legitimate or fraud. The model has been trained on previous examples and now guesses on new cases it has never seen.

How good is it? Test it on examples where you already know the answer, but which the model has not been trained on. If it gets 90 out of 100 cases right, the accuracy is 90 %.

Intuition

There are two types of errors, and they have different consequences:

  • The model marks an important email as spam. You miss it. This is a false positive error.
  • The model lets spam through as a normal email. Your inbox becomes full of junk. This is a false negative error.

Which error is worse depends on the context. A model that detects diseases would rather alarm unnecessarily (false positive) than miss a sick patient (false negative). Accuracy alone does not tell the whole story about the risk.

Mastery means

  • Calculates accuracy from the number of correct predictions and the total number
  • Explains the difference between two types of errors

Sign in to do the exercises and build your mastery up.

Sources

All the sources and licences