Three ways to learn

Learning with answers, learning without answers, and learning by trial and error.

โฑ 5 min read

Not every problem comes with an answer key. Depending on what data you have, machine learning comes in three main flavours.

Supervised๐Ÿฑ๐Ÿถlearns from labelsUnsupervisedfinds hidden groupsReinforcement๐Ÿค–๐ŸŒโญ +1actlearns from rewards
Supervised learning has labels, unsupervised finds structure on its own, reinforcement learns from rewards.

๐Ÿท๏ธ Supervised learning

Every example comes with the right answer, called a label. Photo โ†’ "cat". House details โ†’ price.

Predicting a category is classification. Predicting a number is regression.

Most practical ML today is supervised.

๐Ÿ” Unsupervised learning

No labels at all. The model looks for structure by itself.

Example: grouping customers into types by shopping habits (clustering), without anyone saying what the types are.

๐ŸŽฎ Reinforcement learning

An agent takes actions in an environment and gets rewards or penalties.

No one tells it the right move; it learns which actions pay off over time. This is how AlphaGo learned to beat world champions at Go.

๐Ÿงฉ Quick quiz

You have 50,000 photos of skin spots, each labelled by a doctor as harmless or worrying. Which kind of learning fits?

๐Ÿช„ Self-supervised: the secret behind chatbots

A clever trick: make labels out of the data itself. Hide the next word of a sentence and ask the model to guess it.

The internet becomes one giant answer key. This is how large language models are pre-trained.

๐Ÿงฉ Quick quiz

A robot learns to walk by trying moves and getting points for staying upright. That'sโ€ฆ

โœจ Before you drift off

  • Supervised: learn from labelled examples (classification or regression).
  • Unsupervised: find hidden structure without labels.
  • Reinforcement: learn actions from rewards.
  • Self-supervised: make labels from the data itself, which is how LLMs pre-train.

๐Ÿ“š Go deeper (free & open)