Definition
Machine learning is usually divided by what the model learns from. Supervised learning uses labelled examples. Unsupervised learning finds structure with no labels. Semi-supervised learning mixes a few labels with much unlabelled data. Self-supervised learning creates its own labels from the data. Reinforcement learning learns from rewards.
In simple words
Supervised is a teacher who gives answers while you practise. Unsupervised is being handed a pile of photos and sorting them into groups by yourself. Reinforcement is learning to ride a cycle: nobody gives you answers, you just fall or don't.
Why it matters
The first decision in any ML project is which type fits. It depends on one thing above all: do you have labels? Labels are often the most expensive part of a project, so this choice shapes the cost.
How it works
| Type | Learns from | Typical task | Algorithms |
|---|---|---|---|
| Supervised | Inputs with right answers | Predict a label or a number | Linear regression, trees, SVM |
| Unsupervised | Inputs only | Grouping, compression, anomalies | K-means, PCA, DBSCAN |
| Semi-supervised | Few labels, much unlabelled data | Reduce labelling cost | Self-training, label propagation |
| Self-supervised | Labels made from the data itself | Learn representations | Contrastive learning, BERT, GPT |
| Reinforcement | Rewards from actions | Decisions over time | Q-learning, PPO |
Supervised has two kinds
- Regression predicts a number, such as a house price.
- Classification predicts a category, such as spam or not spam.
Common mistakes
- Confusing clustering with classification. Classification has known labels, and clustering finds its own groups.
- Treating a number that stands for a category as regression, like predicting a city code.
Check yourself
Summary
- The types differ by what the model learns from.
- Supervised splits into regression (numbers) and classification (categories).
- Do you have labels? Start there.
Read it. Now try it yourself.
Open the interactive activityFinished reading?
Sources: Google Machine Learning Crash Course