Machine Learning / Learning Paradigms
Learning with labels versus finding structure.
Reviewed by Yuvaraj
Almost every machine learning project starts with one question: what does your data come with? If every example carries a correct answer, you are doing supervised learning. If the data is just raw observations with no answers attached, you are doing unsupervised learning. That single distinction, labels or no labels, decides which algorithms you reach for, how you measure success, and even whether a problem is solvable at all. This lesson gives you a working mental model of the core paradigms and shows you how to frame the same real-world problem through each lens.
Strip away the vocabulary and a model is just a function with adjustable parameters (the weights). Training means tuning those parameters so the function's outputs are as close as possible to what we want, measured by a loss , a number that is large when the model is wrong and small when it is right. We search for the parameters that minimize the average loss over our data:
Ask about this lesson, or about anything in AI. Answers cite the lessons they draw on.
Finished this lesson?
Mark it complete to earn XP, keep your streak, and schedule a review.
The paradigms differ in what plays the role of :
You give the model input–output pairs and it learns the mapping. Two flavors:
No labels, the model discovers patterns on its own:
k-means, DBSCAN). Which customers behave alike?Take a pile of emails and frame it two different ways.
Same raw data; the presence of labels changes the task, the algorithm, and how you judge results.
Three more paradigms sit between and beyond these two:
| Paradigm | What it uses | Example | Typical method |
|---|---|---|---|
| Supervised | Labeled data | Spam detection | Logistic regression, gradient boosting |
| Unsupervised | Unlabeled data | Customer segmentation | k-means, PCA |
| Self-supervised | Labels derived from the data | Pretraining an LLM to predict the next token | Transformers |
| Semi-supervised | A little labeled + lots of unlabeled | Labeling is costly | Label propagation |
| Reinforcement | Rewards from an environment | Game playing, robotics | Q-learning, policy gradients |
Self-supervised learning is the honest workhorse behind modern foundation models: it is technically supervised, but the labels come free from the data (predict the masked or next word), so no human annotation is needed. Semi-supervised blends a small labeled set with a large unlabeled one. Reinforcement learning is a different setting entirely, an agent learns from reward signals, not a fixed dataset.
Common mistakes