liveBook · Manning

Unsupervised learning

As explained in Introduction to Generative AI, Second Edition

Unsupervised learning is machine learning in which training data are provided without labels.

Unsupervised learning trains a machine-learning model without labeled outputs or a specific reward. Instead, it searches the data for underlying patterns, such as groups or clusters. section 1.1

This approach avoids the often labor-intensive work of having experts label each example. It differs from supervised learning, which maps labeled inputs to known outputs, and reinforcement learning, which learns through rewards and 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 how supervised, unsupervised, and reinforcement learning differ in their data, objectives, and feedback. section 1.1

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Defines unlabeled training and pattern discovery, but stops short of explaining algorithms or implementation.
Examples
Uses underlying data patterns and clusters as the principal examples of unsupervised learning.
What you can do after
Evaluate whether a learning setup uses unlabeled data to discover patterns rather than predict labeled outputs or optimize rewards.
How it connects
Contrasts unsupervised learning with supervised learning, reinforcement learning, labels, rewards, and clustering.

Also explained in

Compare how 20 books explain unsupervised 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.