AI GLOSSARY · AI CONCEPTS
Clustering (machine learning)
Definition
Clustering groups data according to a chosen notion of similarity or structure, usually without supplied target classes. Methods differ: some assign hard clusters, others soft memberships, and some leave points as noise.
Also called: clustering, clustering algorithms, cluster analysis, clustering in data mining, clustering ML, data clustering.
In plain language
Clustering sorts a pile of items into groups without being told what the groups are. Imagine tipping out a box of mixed buttons and sorting them by look until piles form. A program does the same with customers, documents or images, using numbers that describe each item. It gives you piles, not names for them: a person still has to look at each group and decide what it means. The result also depends on choices such as how many groups to ask for and how similarity is measured, so two reasonable setups can give different groupings.
Technical definition
Clustering methods identify groups or structure in data, with behavior depending on the algorithm and its assumptions. K-means minimizes within-cluster squared distances; Gaussian mixtures support probabilistic membership; density-based methods such as DBSCAN can leave points as noise. Reference class labels are not required for training, but independently available labels can support external evaluation, alongside internal measures and stability checks. A cluster is not automatically a meaningful real-world category.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Skill by Skill Almanac · Illustrative, not executed
data-analysis-eda 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill is a fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.
- Why it exercises the concept
- Looking for natural groups is an exploratory step, and caveated findings suit cluster output, which depends on settings. The skill does not run clustering algorithms; the catalogue has no clustering skill. Illustrative only.
Skill by Skill Almanac · Illustrative, not executed
split-leakage-check 53/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill checks train, validation and test files for duplicates, shared groups, time and label leakage and prints JSON.
- Why it exercises the concept
- Groups of near-identical records can land on both sides of a split. This skill checks for shared groups that you define; it does not discover clusters itself. Illustrative only.
Skill by Hugging Face · Illustrative, not executed
huggingface-datasets 25/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill reads Hugging Face datasets through the Dataset Viewer API: metadata, rows, search and filters.
- Why it exercises the concept
- Clustering needs a table of examples to group. This skill can fetch rows from a public dataset; it does not group them. Illustrative only.
How it shows up when you use agents
Clustering turns up when you ask an agent to make sense of data nobody has labelled: support tickets, survey answers, log lines, product reviews. A typical request is "group these into themes". The agent may turn each text into an embedding, run k-means or a similar method with scikit-learn, and print the groups with a few sample items each.
The agent's output is a starting point. The algorithm returns cluster numbers, and any theme name such as "billing problems" is a reading someone added. Ask the agent to show the settings it chose, such as the number of clusters and the distance measure, and to list several members per group so you can check them by eye.
What breaks when it is misunderstood: a reader treats clusters as discovered facts. Different settings can give different groups from the same data. Google's course lists uses such as market segmentation and anomaly detection, but it does not tell you which grouping is right for your goal.
Next action: rerun with a different cluster count or algorithm and see which groups survive. See unsupervised learning.
Common confusions
- Clustering versus classification. Google's crash course says that when examples are labelled, the grouping is called classification. Clustering works without labels and invents the groups.
- Clustering versus k-means. K-means is one algorithm. IBM lists several other families, including hierarchical and density-based methods.
- Cluster versus category. A cluster is a set of similar examples under a chosen measure. It becomes a category when a person names and accepts it.
- Myth. The algorithm finds the true number of groups. Many methods take that number as an input, so it is a choice the person makes and should test.
Related terms
Terms that mention Clustering (machine learning)
More in AI concepts
Sources
- Clustering overview - Machine Learning crash course, Google for Developers (accessed 2026-11-24)
- Clustering - scikit-learn user guide, scikit-learn (accessed 2026-11-24)
- What is clustering?, IBM (accessed 2026-11-24)
- DBSCAN: noisy samples and cluster labels, scikit-learn (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .
Change log (4)
- : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
- : First version.
- : Targeted correction from source-supported early audit; complete exact-version review remains pending.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.