Hypotheses in ML

Which are the three types of machine learning?

Machine learning has three main types: supervised learning with labels, unsupervised learning without them, and reinforcement learning driven by rewards.

On this page
  1. The short answer
  2. Supervised learning
  3. Unsupervised learning
  4. Reinforcement learning
  5. How each type judges a hypothesis
  6. Semi-supervised and self-supervised learning
  7. Choosing a type from the data you have

The short answer

The three main types of machine learning are supervised learning, unsupervised learning and reinforcement learning. They differ mainly in the feedback the learner receives during training: known answers, no answers, or rewards for actions taken.

Supervised learning

In supervised learning, each training example pairs an input with the correct output, called its label. The learner’s hypothesis is scored by how well it predicts those labels on new examples. Two common tasks are:

  • Classification, which predicts a category, such as spam or not spam.
  • Regression, which predicts a number, such as a house price or a temperature.

Supervised learning fits problems where past examples come with known outcomes, which is why it appears so often in applied work.

Unsupervised learning

In unsupervised learning, the data has no labels. The learner looks for structure by itself. Two common goals are:

  • Grouping, often called clustering, which places similar examples together, such as sorting customers by buying habits when no groups are given in advance.
  • Reducing dimensions, which compresses many input features into fewer ones while keeping most of the useful variation.

Because there are no labels, the checks are different. The result is judged by internal measures, such as how tight the groups are or how much of the original variation a compressed version keeps.

Reinforcement learning

Reinforcement learning involves an agent that takes actions in an environment and receives rewards or penalties. There are no labeled answers for each action. Instead, the agent learns a policy, a rule that maps situations to actions, and it aims to collect as much reward as possible over time.

Reinforcement learning is sometimes confused with unsupervised learning, because neither works from a labeled dataset in the usual sense. The difference is the reward signal, which tells the agent how its own actions turned out. Examples include game-playing agents and robots learning to move.

How each type judges a hypothesis

  • Supervised: the candidate function is checked against known labels.
  • Unsupervised: there are no labels, so the result is checked against measures of structure.
  • Reinforcement: the learned policy is checked by the rewards it earns.

This is why the type of learning changes how a hypothesis is chosen and evaluated.

Semi-supervised and self-supervised learning

Some sources list more categories. Semi-supervised learning uses a small set of labeled examples together with a large set of unlabeled ones. Self-supervised learning creates its own training signal from the data, for example by predicting a hidden part of an input from the rest of it. Large language models are commonly described as trained this way.

These are best seen as variations or combinations, not a fourth main type. The three-part split is a teaching convention, and real systems often mix approaches.

Choosing a type from the data you have

The practical question is what data and feedback you have:

  • Labeled examples with known outcomes point toward supervised learning.
  • Unlabeled data, with a goal of finding structure, points toward unsupervised learning.
  • A setting where an agent acts and receives feedback over time points toward reinforcement learning.

The goal of the project matters as well, so treat these as starting points rather than rules.

The complete guide to hypotheses in ml

Types of Hypothesis in Machine Learning
Read the guide

Keep exploring

Guides from other topics

All topics →