liveBook · Manning

Supervised learning

As explained in Introduction to Generative AI, Second Edition

Supervised learning is machine learning in which training examples include desired outputs or labels.

When a system learns to translate text, it can compare its outputs with known translations. This is supervised learning: a machine-learning approach that maps labeled inputs to desired outputs. section 1.1

Labels identify the desired answer for each training example. Human experts often define these answers, making data preparation potentially labor-intensive. Unlike unsupervised learning, supervised learning uses labels; unlike reinforcement learning, it does not rely primarily on trial-and-error rewards or penalties. section 1.1

Table 1.1 Types of machine learning

Supervised learning

Unsupervised learning

Reinforcement learning

Description

The model learns by mapping labeled inputs to known outputs.

The model is trained without labels and without a specific reward.

The model learns from its environment based on rewards and penalties.

Data

Labeled data

Unlabeled data

No static dataset

Objective

To predict the output of unseen inputs

To discover underlying patterns in the data, such as clusters

To determine the optimal strategy via trial and error

Compare supervised, unsupervised, and reinforcement learning by their data, objectives, and learning signals. section 1.1

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Defines labeled input-output learning and contrasts learning signals, but stops short of implementation details or model internals.
Examples
Uses machine translation and thousands of translated documents as examples of labeled training data.
What you can do after
Evaluate supervised learning by identifying its labels, objectives, data requirements, and differences from alternative learning approaches.
How it connects
Connects supervised learning with unsupervised learning, reinforcement learning, labels, training data, and natural language processing.

Also explained in

Compare how 19 books explain supervised learning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.