Heuristic Search

What are the four types of ml?

Machine learning is often grouped into four types: supervised, unsupervised, semi-supervised and reinforcement learning, with a simple example of each.

On this page
  1. Supervised learning
  2. Unsupervised learning
  3. Semi-supervised learning
  4. Reinforcement learning
  5. Comparing the four types
  6. How this connects to heuristic search
  7. Summary

Machine learning (ML) is often grouped into four types: supervised learning, unsupervised learning, semi-supervised learning and reinforcement learning. The grouping depends on what kind of data the learner gets and how it receives feedback. Some textbooks list only the first three and treat semi-supervised learning as a mix of supervised and unsupervised learning, so a search for which are the three types of machine learning often gets a different answer.

Supervised learning

Supervised learning trains on labeled data. Each example has an input and the correct output, called its label, so the model learns a mapping from inputs to outputs. Two common tasks are classification, which predicts a category such as whether an email is spam, and regression, which predicts a number such as a house price.

Labels are what make the learning supervised. People or recorded outcomes usually supply them. The idea of a label is central here, and what does labeled data mean in machine learning covers it in more depth.

Unsupervised learning

Unsupervised learning works with unlabeled data, so no correct answers are given. The model looks for structure on its own, such as groups of similar items or a smaller set of features that captures most of the variation in the data.

Clustering is the best-known task in this group. It sorts items into groups based on how similar they are, such as grouping customers by their buying habits. Readers who want the details can start with what is clustering in unsupervised learning.

Semi-supervised learning

Semi-supervised learning uses a small amount of labeled data together with a large amount of unlabeled data. It is useful when labeling every example is slow or costly, for instance when experts must review each medical image. The labeled examples guide what the model learns from the rest.

Semi-supervised and unsupervised learning both use unlabeled data, so which learning uses unlabeled data has more than one answer. The difference is that semi-supervised learning also has some labels to work from.

Reinforcement learning

Reinforcement learning is different from the other three. An agent takes actions in an environment and receives rewards or penalties. It is not told the right action in each situation. Instead, it learns a strategy that tends to earn more reward over time. Game-playing programs and robot control are common examples.

Because reinforcement learning learns from rewards rather than from a fixed set of labels, it does not fit neatly into the labeled or unlabeled split. That is why the question of whether reinforcement learning uses unlabeled data is a little misleading.

Comparing the four types

Type Data Feedback Example
Supervised Labeled examples Correct answers Spam filtering
Unsupervised Unlabeled examples None given Grouping customers
Semi-supervised Mostly unlabeled, some labeled A few correct answers Classifying web pages
Reinforcement Experience from actions Rewards and penalties Game-playing agent

Heuristic search, such as A*, uses estimates that people design to guide a search. Machine learning learns estimates from data. Some reinforcement learning systems combine learned value estimates with planning, and a learned value can play a role similar to a heuristic. This is one reason the two fields are often discussed together, even though they start from different ideas.

Summary

The four types of machine learning are supervised, unsupervised, semi-supervised and reinforcement learning. Each one is defined by the kind of data it gets and the kind of feedback it receives. Lists that give three types usually leave out semi-supervised learning.

The complete guide to heuristic search

Types of Heuristic Search in Artificial Intelligence
Read the guide

Keep exploring

Guides from other topics

All topics →