Skip to main contentSkip to navigationSkip to footer
DigiTransact AI Education Centre Start Learning

Level 2 · Module 7 · 10 minutes

Learning from labelled examples

What you will learn
  • Explain what supervised learning is in plain words.
  • Describe the role of training examples and labels.
  • Explain why the quality and consistency of labels matter.

Supervised learning is learning from examples where the answer is already known. You show software many cases, each with its features and the correct label. The software adjusts itself so its answers match the labels as well as it can. Then it can label new cases it has never seen.

The everyday shape

Email sorted into unwanted (spam) and normal. Support messages tagged as urgent or routine. Photos marked as damaged packaging or fine. Applications recorded as repaid or not repaid. In each case, someone at some point decided the label. That decision is the model's teacher.

There are two large families. When the label is a category, such as spam or not, the task is classification. When the label is a number, such as minutes until delivery or items sold next week, the task is regression. Both use labelled examples.

What the model needs from examples

Labels are usually the expensive part. Marking thousands of messages by hand takes time, and tired people disagree. That human effort is the real cost of supervised learning, far more than the software.

What learning means here

The model does not read the labels and write a rule. It adjusts internal numbers so that its predictions move closer to the labels. The finished model is a file of those numbers. If the labels are wrong or inconsistent, the model learns the confusion.

Real training versus classroom labelling

A class exercise where you label messages by hand is labelling, not training. It demonstrates where labels come from and how hard they are to keep consistent. Training begins when software reads a large set of labelled examples, predicts, compares each prediction with its label, and adjusts. The two activities are related, but only the second produces a model.

When labels are absent

If nobody has recorded the answers, supervised learning is not available. You can still look for structure in the features, which is unsupervised learning. For now, remember the pairing: features are the input, labels are the answer, and the model's job is to connect them.

Common misconception

Supervised learning teaches the computer the right answers directly, so the computer can never be wrong afterwards. Supervised learning uses known answers to adjust a model. The model then makes estimates on new cases, and those estimates can be wrong, especially on cases unlike the training examples.

Guided practice

Pick a decision with a clear yes-or-no outcome, such as whether a repair is urgent or whether an item will be returned. Write the label definition in one sentence, list five example cases, and mark any where two reasonable people might label them differently. Explain what that disagreement would do to a model.

Knowledge check

1. Which task is supervised learning?

2. Why is human labelling often the biggest cost of supervised learning?

3. A classroom exercise asks you to mark messages as urgent or routine. Which statement is accurate?

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

Last updated: