The Three Types of Machine Learning
Machine learning splits into three broad families, distinguished by what kind of data they learn from and what kind of feedback guides them.
Supervised learning
Supervised learning is what Module 3 described: you have labeled examples (input, correct answer), and the model learns to map inputs to outputs. It further splits into two common problem types:
- Regression — predicting a number (house price, temperature tomorrow). Module 5 covers this with linear regression.
- Classification — predicting a category (spam/not spam, cat/dog/horse). Module 6 covers this with k-Nearest Neighbors.
Most of the AI you interact with daily — spam filters, recommendation systems, fraud detection, voice recognition — is supervised learning.
Unsupervised learning
Here, there are no labels at all — just raw data — and the goal is to find structure in it. Common tasks include:
- Clustering — grouping similar items together (e.g. segmenting customers by purchasing behavior without being told the segments in advance).
- Dimensionality reduction — compressing data down to its most important patterns while losing as little information as possible (useful for visualizing high-dimensional data, or as a preprocessing step for other models).
- Anomaly detection — flagging data points that don't fit the normal pattern (e.g. unusual credit card activity).
Reinforcement learning
Reinforcement learning (RL) is different from both: an agent takes actions in an environment and receives rewards or penalties, learning through trial and error which actions lead to good long-term outcomes — much like training a dog with treats. There's no fixed dataset of "correct answers"; the agent generates its own experience by acting.
RL is behind game-playing systems (like agents that mastered Go and chess through self-play), robotics control, and is also used to fine-tune the behavior of some large language models based on human feedback (often abbreviated RLHF).