ladderlore
  • Type a service name, like S3 or IAM.

Concept

Types of learning

Supervised, unsupervised and reinforcement learning differ in what the model learns from.

  • Supervised

    Learns from examples that have the right answer.

  • Unsupervised

    Finds structure in data that has no answers.

  • Reinforcement

    Learns by trying actions and earning rewards.

What the three main types learn from.
  • Supervised

    Business example
    Flag emails as spam or not spam
    Clue phrase
    Labeled data, known outcomes
  • Unsupervised

    Business example
    Segment customers by behavior
    Clue phrase
    No labels, find groups
  • Reinforcement

    Business example
    Teach a robot to pick items
    Clue phrase
    Reward, penalty, trial and error
  • Self-supervised

    Business example
    Pre-train a language model on raw text
    Clue phrase
    Makes its own labels from raw data
  • Semi-supervised

    Business example
    Label a few photos, learn from many more
    Clue phrase
    A few labels plus much unlabeled data
Five types with an example and a clue for each.

1 / 2

  • Supervised

    Business example
    Flag emails as spam or not spam
    Clue phrase
    Labeled data, known outcomes
  • Unsupervised

    Business example
    Segment customers by behavior
    Clue phrase
    No labels, find groups
  • Reinforcement

    Business example
    Teach a robot to pick items
    Clue phrase
    Reward, penalty, trial and error

2 / 2

  • Self-supervised

    Business example
    Pre-train a language model on raw text
    Clue phrase
    Makes its own labels from raw data
  • Semi-supervised

    Business example
    Label a few photos, learn from many more
    Clue phrase
    A few labels plus much unlabeled data
Five types with an example and a clue for each.

What it is

In supervised learning, the model learns from labeled examples. It sees inputs with the right answers and learns to predict the answer for new inputs. Spam filters work this way.

In unsupervised learning, there are no labels. The model looks for structure by itself, such as groups of similar customers. Other unsupervised jobs are anomaly detection, which spots unusual records such as possible fraud, and dimensionality reduction, which keeps the most useful features.

What it is

In reinforcement learning, an agent tries actions in an environment and gets rewards or penalties. It learns the actions that earn the most reward over time. Robots, games and trading rules use it. Reinforcement learning from human feedback (RLHF) is a related method used to tune language models.

Self-supervised learning makes its own labels from raw data, for example by hiding a word and predicting it. This is how foundation models are pre-trained, so no one has to label the huge data set. Semi-supervised learning uses a few labeled examples plus much unlabeled data, which saves labeling cost.

Remember

  • Supervised: labeled data, predicts a known answer type.
  • Unsupervised: no labels, finds groups, anomalies or patterns.
  • Reinforcement: learns by trial, reward and penalty.
  • Self-supervised: the model makes its own labels from raw data. Foundation models pre-train this way.
  • Semi-supervised: a few labels plus much unlabeled data.

On the exam

  • “Historical data with known outcomes” points to supervised learning.
  • “Group customers without predefined categories” points to unsupervised learning.
  • “An agent learns from rewards and penalties” points to reinforcement learning.
  • “Creates its own labels from unlabeled data” points to self-supervised learning.