Skip to main content
Albero Academy

Supervised vs Unsupervised

The two families of ML — with and without labels.

Foundations8 min

Machine learning splits into two big families based on whether your data has labels (known answers). Knowing which you have determines the whole approach.

Supervised learning

You have labelled examples (features X and known targets y) and learn to predict the target for new data:

  • Regression — predict a continuous number (house price, temperature).
  • Classification — predict a category (spam/not, disease/healthy).

Unsupervised learning

You have only features (no labels) and find structure in the data itself:

  • Clustering — group similar items (customer segments).
  • Dimensionality reduction — compress features while keeping structure (PCA).

Key takeaways

  1. 01Supervised learning uses labelled data (X → y): regression (numbers) or classification (categories).
  2. 02Unsupervised learning has no labels: clustering (grouping) or dimensionality reduction (compressing).
  3. 03The presence of a target label decides which family and which algorithms apply.
  4. 04Regression predicts continuous values; classification predicts discrete categories.

Finished this chapter?

Mark it complete to track your progress through Scikit-learn.