Skip to content

Beginning of the lesson

The Big Idea: One Goal, Three Ways of Learning

In the previous lessons you saw that machine learning (ML) means letting a computer learn patterns from data instead of following hand-written rules. But not all learning problems look the same. Sometimes we have a teacher who shows the computer the right answers. Sometimes we have a pile of data and no answers at all. And sometimes there is no data to start with — the machine must learn by trying things and seeing what happens.

These three situations give us the three classic types of machine learning: supervised learning, unsupervised learning, and reinforcement learning. Almost every AI system you meet — spam filters, music recommendations, game-playing bots — belongs to one of these families. Knowing which is which tells you a lot about how the system was built and what data it needed.

Learning Goals

  • Explain what supervised learning is and recognize its two flavors: classification and regression.
  • Explain what unsupervised learning is and describe clustering with everyday examples.
  • Describe reinforcement learning using the words agent, action, environment, and reward.
  • Compare the three types by the data they need, their goal, and typical uses.
  • Recognize the names semi-supervised and self-supervised learning when you hear them.

The Family Tree of Machine Learning

Machine Learning learning patterns from experience Supervised learns from LABELED examples (data + answer) like studying with an answer key Unsupervised finds structure in data with NO labels like sorting a box of mixed buttons yourself Reinforcement agent tries ACTIONS, learns from REWARDS like training a puppy with treats Classification predict a category spam / not spam Regression predict a number price, temperature Clustering group similar items customers, songs Trial and error game AIs, robots, self-driving practice

The three main branches of machine learning and their best-known sub-types.

Continue this lesson on YourAIZone

The full lesson has the complete explanation, worked examples, common mistakes, tests with instant checking and an AI tutor. Start right away as a guest, or create an account to keep your progress.

In the full lesson

  • The complete explanation
  • Worked examples
  • Common mistakes and how to avoid them
  • Test questions: 16
  • AI tutor that answers questions about the topic
  • Progress tracking for students, parents and teachers