# Unsupervised learning

> Canonical: https://skillalmanac.com/glossary/unsupervised-learning | Last verified: 2026-11-25 | Index status: index-eligible

Unsupervised learning is a machine learning method that analyses data without labels, finding hidden patterns or groupings such as clusters on its own, without a human supplying the correct answers.

Also called: unsupervised machine learning, unsupervised ML.

## In plain language

Unsupervised learning is sorting without an answer key. You give a model a big pile of data and no labels, and it looks for natural groupings or patterns. Imagine tipping out a jar of mixed buttons and sorting them by what looks alike, without being told the categories. It is useful for exploring data you do not understand yet, but a person still has to decide whether the groups it finds mean anything.

## Technical definition

Unsupervised learning derives structure from data without supplied target labels for training. Tasks include clustering, association analysis and dimensionality reduction. Evaluation depends on the task and available evidence: internal cluster measures and stability checks do not require reference labels, while external measures such as adjusted Rand index can compare clusters with independently available ground-truth classes. No labels in training does not mean labels can never be used in evaluation.

## How it shows up when you use agents

Agents meet unsupervised learning mostly through analysis work. Ask one to "find the main kinds of error in this log" or "group these support tickets" and the underlying idea is clustering: no one has told it the categories. The result is a proposal, not a fact. Two runs with different settings can give different groups, and a group can be tidy without being meaningful.

Good practice is to ask the agent to show examples from each group, state what settings it used, and say what it could not tell. Skills in the catalogue that cluster logs or profile data follow this pattern by reporting counts and evidence rather than just a label.

The idea also sits behind large models. A [large language model](/glossary/large-language-model) is first trained on raw text with no human labels, although its training objective is a prediction task, which is why the term "self-supervised" is often used for it. For the labelled counterpart, see [Supervised learning](/glossary/supervised-learning), and for the wider field see [Machine learning](/glossary/machine-learning).

## Common confusions

- **Unsupervised versus supervised.** Unsupervised learning has no labels and finds structure. Supervised learning has labels and predicts them. See [Supervised learning](/glossary/supervised-learning).
- **Clustering versus classification.** Clustering discovers groups and names none of them. Classification assigns items to categories you defined in advance.
- **Myth.** The groups it finds are the truth. They are one way of slicing the data, and a person has to check that they mean something.
- **No labels versus no human.** The algorithm needs no labels, but people still choose the data, the method and its settings.

## Worked examples in this catalogue

### [log-error-clustering](https://skillalmanac.com/skills/skill-almanac/log-error-clustering)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A ranked table of distinct error signatures from a huge log, with counts, timing and a triage order.

Why it exercises the concept: It groups similar log lines without being told the categories in advance, which is the clustering idea at work on engineering data.

### [data-analysis-eda](https://skillalmanac.com/skills/skill-almanac/data-analysis-eda)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.

Why it exercises the concept: Exploring a dataset with no target in mind is the everyday use of unsupervised thinking, and the caveats echo the need to judge patterns with care.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
claude
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A terminal session where an agent can write and run an analysis script on your data, under the configured permission mode and rules; some actions may run without a prompt.

Why it exercises the concept: Agents are often asked to cluster or profile data, and you review whether the groups found are meaningful.

## Related terms

- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Supervised learning](https://skillalmanac.com/glossary/supervised-learning.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Deep learning](https://skillalmanac.com/glossary/deep-learning.md)
- [Generative AI (gen AI)](https://skillalmanac.com/glossary/generative-ai.md)
- [Topic modeling](https://skillalmanac.com/glossary/topic-modeling.md)
- [Self-supervised learning](https://skillalmanac.com/glossary/self-supervised-learning.md)

## Sources

- [What is unsupervised learning?](https://www.ibm.com/think/topics/unsupervised-learning), IBM (accessed 2026-11-23)
- [Machine Learning Glossary](https://developers.google.com/machine-learning/glossary), Google for Developers (accessed 2026-11-23)
- [Clustering performance evaluation: external and internal measures](https://scikit-learn.org/stable/modules/clustering.html#clustering-performance-evaluation), scikit-learn (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
