Objectives
By the end of this lesson, you will be able to:
- Describe supervised, unsupervised and reinforcement learning
- Match a real task to the kind of learning that suits it
- Explain what each kind of learning needs in order to work
Key terms
- Supervised learning
- Learning from examples that come with the correct answer attached.
- Unsupervised learning
- Finding structure, such as groups, in data that has no labels.
- Reinforcement learning
- Learning by trial and error, guided by rewards for good outcomes.
Reading
Supervised learning: learning with an answer key
This is the most common kind, and the one from Unit 2. The model sees examples with labels: this email is spam, this one is not. It adjusts itself until its own answers match the labels, then applies what it learned to new examples.
It is like studying with flashcards that have the answer on the back. It needs a lot of labeled examples, and it can only learn the categories it was shown.
Unsupervised learning: finding groups on your own
Here there are no labels. The model looks for structure by itself, most often by grouping similar examples together. A music service might find clusters of listeners with similar taste without anyone defining the groups in advance.
It is like being handed a box of mixed buttons and sorting them however makes sense to you. It is useful for exploring data, but someone still has to look at the groups and decide what they mean.
Reinforcement learning: learning from rewards
In reinforcement learning, a system takes actions and receives rewards or penalties. Over many attempts it discovers which actions lead to the most reward. This is how AI systems have learned to play games at a very high level and how some robots learn to move.
It is like learning to ride a bike: nobody labels each movement as right or wrong, but staying upright feels like success and falling does not. It needs a safe place to make many mistakes, which is why it is often done in simulations.
One caution applies to all three. A system pursues exactly what it is rewarded or scored for, which is not always what its builders meant. A feed rewarded for keeping people watching may learn to promote whatever is hardest to look away from.
Try it · Interactive lab
Which kind of learning?
Match each project to the kind of machine learning it uses.
Learning to spot tumors from X-rays that doctors have labeled
Group activity 20 min
Three stations
You will need
- Station A: 20 picture cards with labels on the back
- Station B: a bag of mixed small objects (buttons, beads, coins)
- Station C: a hidden object in the room and a helper who may only say "warmer" or "colder"
- 1
Station A, supervised. Study the labeled cards for two minutes, then label five new unlabeled cards.
- 2
Station B, unsupervised. Sort the objects into groups without being told how. Compare your groups with another team's.
- 3
Station C, reinforcement. Find the hidden object using only "warmer" and "colder."
- 4
After rotating through all three, name what each station needed in order to work: labels, similarity, or feedback.
Discuss
- Q1
At Station B, did different teams sort the objects differently? Was any grouping wrong?
- Q2
Which kind of learning would you use to detect fake reviews? To group news articles by topic? To teach a robot to walk?
- Q3
A video app is rewarded for watch time. What might it learn to show people? Is that what its builders wanted?
Write your answer to one of the questions. Saved only on this device.
Quick check
Choose an answer to see whether you were right, and why.
Key takeaways
- Supervised learning uses labeled examples.
- Unsupervised learning finds groups in unlabeled data.
- Reinforcement learning improves through trial, error and reward, and it pursues exactly what it is rewarded for.