Artificial intelligence • Original RRTutors lesson
Supervised, Unsupervised, Semi-Supervised, and Self-Supervised Learning
Select a learning setup based on whether labels are available and how training targets are created.
Concept and explanation
Supervised learning uses labeled input-output examples. Unsupervised learning looks for structure without explicit target labels. Semi-supervised methods combine a smaller labeled set with a larger unlabeled set; self-supervised methods construct training targets from the input itself. These paradigms do not guarantee useful representations or downstream performance.
How to apply it
Inventory labels, their cost and quality, then choose a training objective aligned with the actual deployment task.
Worked example
A language model can learn to predict masked or next tokens from raw text, then be adapted to a narrower application.
Illustrative Python example
labels_available = False
training_setup = "self-supervised" if not labels_available else "supervised"
print(training_setup)
Expected result
The setup is selected from the availability of explicit labels in this simplified example.
Limitations and cautions
Unlabeled data can still contain privacy concerns, sampling bias, or irrelevant patterns.
Practice exercise
Give one dataset example for each learning paradigm and describe its target signal.
Key takeaway: The training signal determines what a model is encouraged to learn.