AI subject guide

Supervised vs unsupervised learning: start with the learning signal

Supervised learning fits a relationship between inputs and supplied targets. Unsupervised learning looks for structure without those task-specific targets. The difference is the information used during learning, rather than whether a person supervises the computer while it runs.

SchoolWhool's current learning path covers Python, Data Tools, Maths, Statistics and classical Machine Learning. Open lessons' parts and key terms are free to read.

What each approach learns from

Supervised classificationInputs paired with categories. Learn to assign a repair request to a previously defined issue type.
Supervised regressionInputs paired with numerical targets. Learn to predict repair duration from information available when the request arrives.
Unsupervised clusteringInputs without supplied cluster memberships. Group repair requests by a chosen representation and similarity criterion.
Dimensionality reductionLearn a lower-dimensional representation. A plot can help inspect data, but visible separation does not on its own prove useful categories.

The same dataset can support different questions

Imagine a table of repair requests containing text, product type, arrival date, a reviewed issue category and eventual completion time. Predicting the reviewed category is supervised classification. Predicting duration is supervised regression. Exploring groups of similar requests without using either target is an unsupervised task.

A column being present does not make it a legitimate feature. The eventual completion time is unavailable when a new request arrives. Including it in an arrival-time prediction would leak future information, regardless of the model you choose.

Labels are useful, but how were they created?

A label records a target, not necessarily the truth you hoped to measure. A historical issue category may reflect an old workflow; a repair duration may include a delay unrelated to the product. Read a sample of records and write down what the target actually means.

In an exercise, keep a list of disputed labels. Compare your model's mistakes with the labelling guide before deciding that every disagreement is a modelling failure. This also helps you explain why an apparently precise evaluation has limits.

Why clusters are not automatically meaningful categories

A clustering algorithm groups according to its representation and objective. If the repair dataset is represented mainly by message length, the groups may describe writing style rather than fault type. Changing feature scale or representation can change what similarity means.

Inspect examples from each group and ask what action the grouping supports. A group is useful only in relation to a question. Do not name a cluster 'urgent failures' simply because a few prominent examples sound urgent.

How to evaluate the two approaches

  1. Define what success means

    For supervised prediction, name the target and the cost of different mistakes. For exploration, name the decision or understanding the structure should support.

  2. Keep learning and evaluation separate

    Fit preprocessing and models on training data. Choose a split that respects time, repeated entities and duplicate records where those matter.

  3. Compare with a baseline

    For a classifier, inspect a simple reference prediction. For clustering, check whether the groups add useful information beyond an obvious grouping such as product type.

  4. Inspect the result, not just one score

    Review errors by category for prediction. For clustering, inspect stability, representative examples and whether the groups remain useful under reasonable representation changes.

Where self-supervised and reinforcement learning fit

Self-supervised learning creates training targets from the data itself, such as predicting a hidden part of an input. It can produce a representation later used in a supervised task. Reinforcement learning instead studies actions and reward over interactions. These distinctions are more useful than forcing every workflow into only two boxes.

Begin by learning to prepare a dataset, fit a baseline and evaluate it. SchoolWhool's Data Tools, Statistics and Machine Learning tracks support that workflow, with Python and Maths available for the underlying implementation and concepts.

Where this guide takes you

  • Use the examples to understand the task and its evaluation. They are suggested learning exercises, not measured results or production-ready systems.
  • The linked SchoolWhool courses teach the foundations. Specialist deep learning, computer vision, NLP, generative AI and reinforcement learning tracks are not published.
  • Open lessons' parts and key terms are free to read. A free account opens quizzes and saved progress, plus practice and other material in the free sample modules.

Questions

What is labelled data?

Data paired with a target used for learning, such as a category, a numerical outcome or an annotated region. Labels may be supplied by people or recorded through a process.

Is classification supervised and clustering unsupervised?

Usually, yes. Classification learns supplied categories; clustering forms groups without supplied memberships for those groups.

Can I use unsupervised learning if I have labels?

Yes. You can choose an unsupervised question and leave the labels out of fitting, then use them carefully to inspect or evaluate the learned structure.

Which is better: supervised or unsupervised learning?

They answer different questions. Use supervised learning for a defined target with suitable examples; use unsupervised methods to investigate structure without that target.

Does unsupervised learning mean no human decisions?

No. People still choose the data, representation, algorithm and evaluation. Those choices influence what structure appears.

Sources

Technical references and further reading from the authors, educators and maintainers below. Read dates record when these references were checked; the examples and suggested exercises in this guide are SchoolWhool's own.

Related reading

What is machine learning?What is reinforcement learning?Statistics foundationsData leakage explained

Build the foundations for this subject

Follow SchoolWhool's learning path through Python, Data Tools, Maths, Statistics and Machine Learning. Start with the skills you need, read open lessons without an account, then sign in free for quizzes and saved progress. Free sample modules also open their practice and study material.

Directory listings

  • SchoolWhool on Siteefy
  • SchoolWhool on UNO Directory
  • SchoolWhool on Neeed Directory

Directory submissions

Submission badges — publication or verification pending.