Learning without a teacher
A machine finds groups in data with no labels.
Groups with no labels
Nine animals are measured for size and speed. Nobody says which group each one belongs to. Can a machine still make groups?
What this lesson covers
The idea
A machine can find groups in data that has no labels, but it does not name the groups: people do.
Groups with no labels
Nine animals are measured for size and speed. Nobody says which group each one belongs to. Can a machine still make groups?
- No, a person must tell it the groups first
- Yes, it can group animals that are alike
- Yes, and it will also name each group
Let the machine find groups
Each dot is an animal, placed by its size and its top speed. The numbers are rough, and the dots have no labels. The machine will make 3 groups.
Press Use suggested start, then press Step until nothing changes. Each step, every animal joins its nearest centre. Then each centre moves to the middle of its animals.
Groups, but no names
With the suggested start, the machine found three groups: Tortoise, Snail, Ant, then Cheetah, Horse, Deer, then Elephant, Rhino, Buffalo. Nobody told it these groups in advance.
The screen only says Group 1, 2 and 3. We chose names like “tiny and slow”, “fast runners” and “big and heavy”. The machine only sees how close the dots are.
Learning without a teacher: a machine finds groups in data with no labels, and people decide what the groups mean.
Scientists call this unsupervised learning. Finding the groups is called clustering.
Notes
Learning without a teacher: a machine finds groups in data with no labels, and people decide what the groups mean.
The machine finds the groups. People name them, and check that they make sense.
Check yourself
Ishaan’s phone has 300 songs with no genre tags. It groups similar songs into Set 1, Set 2, Set 3 and Set 4. What is left for Ishaan to do?
Which job is learning without a teacher?
A machine groups 12 fruits by colour only. It puts a banana in the same group as the lemons. What does this show?
- Read the names the phone gave each set, and use them. The phone only made groups called Set 1 to Set 4. It did not name them. Set 1 might be calm songs or fast songs, and only a person can say.
- Label every song by hand so the phone can group them. That is learning with a teacher. Here the phone finds the groups without any labels.
- Listen to each set and choose a name that fits it — correct. Yes. The machine finds the groups. People decide what they mean and whether they are useful.
- A library computer sorts 5,000 books into groups, with no labels — correct. Yes. Nobody said which group each book belongs to. The computer finds the groups from the data.
- A phone learns “cat” or “dog” from photos that people labelled first. People labelled the photos, so there is a teacher. That is learning from labelled examples.
- A robot learns a maze by gaining points each time it reaches a star. That is learning by trying, with rewards. It comes in the next lesson.
- The machine is broken, so the grouping should be thrown away. Nothing is broken. It grouped exactly by the numbers it was given, and both fruits are yellow.
- Groups depend on what we measure, so people must check them — correct. Yes. Colour alone puts a banana with lemons. Measuring size, taste or shape would give other groups.
- Machines find the one true grouping that exists in the data. There is no single true grouping. Different measurements give different groups, so people decide if a grouping is useful.