← ⚙️ Inside AI

Inside AI · Topic 3 of 10

Three kinds of machine learning

Machine learning comes in three main kinds: supervised learning (labelled examples), unsupervised learning (finding groups) and reinforcement learning (rewards).

📌 Key points

  1. Supervised learning learns from labelled examples: each input comes with the right answer, e.g. photos labelled "cat" or "dog".
  2. Two common supervised tasks: classification (choose a category, e.g. spam or not spam) and regression (predict a number, e.g. a house price).
  3. Unsupervised learning uses data with no labels. It finds structure by itself, such as groups of similar items. This is called clustering.
  4. Reinforcement learning uses trial and error. An agent takes actions and gets rewards for good results and penalties for bad ones, e.g. learning to play a game.
  5. Labels are often added by people, which can take a lot of time and money.
  6. To choose: labelled answers → supervised. No labels, want groups → unsupervised. Learning actions from rewards → reinforcement.
  7. Many real AI systems combine more than one kind.

📖 Key words

Label
The correct answer attached to a training example, e.g. "cat".
Supervised learning
Learning from examples that have labels (the right answers).
Unsupervised learning
Finding patterns or groups in data that has no labels.
Clustering
Putting similar items into groups.
Reinforcement learning
Learning by trial and error, using rewards and penalties.
Agent
In reinforcement learning, the program that takes actions and learns from rewards.
Reward
A score given for an action that helps reach the goal.

✏️ Worked example

Which kind of machine learning fits each task? (a) Spot broken bones using 5,000 X-rays marked by doctors. (b) Find groups of similar customers in shop data with no labels. (c) Learn to get through a maze game, scoring points for reaching the exit.

  1. (a) Each X-ray has the right answer (broken or not) from a doctor, so it is labelled data: supervised learning.
  2. (b) There are no labels. The computer must find groups by itself: unsupervised learning (clustering).
  3. (c) The program tries moves and gets points for good results: reinforcement learning.
  4. Answer: (a) supervised, (b) unsupervised, (c) reinforcement.
💡 Remember

Ask yourself: are there labels? Labels → supervised. No labels → unsupervised. Rewards for actions → reinforcement.

Test yourself8 questions from a bank of 19. A new mix every time.
Start the quiz →

It’s bedtime! 😴

It’s late, and even Numo is getting sleepy. The best thing you can do for your learning now is… go to sleep!

✨ Sleep helps you

  • 🧠 remember what you learned today: your brain saves it while you sleep
  • 🌱 grow and stay healthy
  • ⚡ wake up with energy, ready to learn and play
  • 😊 feel happy and calm

🦉 Going to bed late can make you

  • 😩 tired and sleepy at school tomorrow
  • 🤯 find it harder to focus and to remember
  • 😠 grumpy and easily upset
  • 🤧 catch colds more easily

Children your age need 9 to 12 hours of sleep every night. Numo will be right here tomorrow!