...cluster

From PRIMO.ai
Jump to navigation Jump to search
↺ Start over · Full treeYou are here: AI Solver › Predict and analyze › ...cluster
AI Solver map
Your current page is in bold
0 · Start
1 · Predict & analyze
tables, numbers, events
2 · Understand unstructured data
text, documents, images, audio
3 · Generate & converse
4 · Decide & act
5 · Build it right
applies to every path

YouTube ... Quora ...Google search ...Google News ...Bing News

Use this page when you have no labels and want to discover structure: customer segments, document topics, groups of similar products or patients. Clustering is unsupervised learning, so judge results by whether the groups are stable and useful, not by a single score.

Start here

Quick picks

Situation Try first Then compare
Numeric data, rough number of groups known K-Means Gaussian mixture
Unknown number of groups, noisy data HDBSCAN DBSCAN, Mean-shift
Text documents or tickets Embeddings + UMAP + HDBSCAN (BERTopic) Topic models
Categorical fields K-Modes Gower distance + hierarchical clustering
Need a hierarchy Agglomerative clustering HDBSCAN cluster tree
Shopping baskets Association Rule Learning Item embeddings + clustering

Real-world examples

Watch out

  • Scale features first — otherwise the column with the biggest numbers decides the clusters.
  • Clusters always appear even in random data; check that they are stable when you resample.
  • UMAP and t-SNE plots distort distances — good for pictures, not for measuring how far apart groups are.

Measure success

Silhouette score, Davies–Bouldin index, stability under resampling, and the business test: can someone describe each segment and act on it? More: ...evaluate and trust AI

Learn more

Given a set of data points, we can use a clustering algorithm to classify each data point into a specific group. In theory, data points that are in the same group should have similar properties and/or features, while data points in different groups should have highly dissimilar properties and/or features. Clustering is a method of unsupervised learning and is a common technique for statistical data analysis used in many fields. We can use clustering analysis to gain some valuable insights from our data by seeing what groups the data points fall into when we apply a clustering algorithm. The 5 Clustering Algorithms Data Scientists Need to Know

See the algorithms in action

K-Means Clustering

1*KrcZK0xYgTa4qFrVr0fO2w.gif

Mean-Shift Clustering

1*vyz94J_76dsVToaa4VG1Zg.gif

Density-Based Spatial Clustering of Applications with Noise (DBSCAN)

1*tc8UF-h0nQqUfLC8-0uInQ.gif

Expectation–Maximization (EM) Clustering using Gaussian Mixture Models (GMM)

1*OyXgise21a23D5JCss8Tlg.gif

Hierarchical Clustering; Agglomerative (HAC) & Divisive (HDC)

1*ET8kCcPpr893vNZFs8j4xg.gif


Where next? ◀ Predict & analyze · ...find outliers · ...make recommendations · ...find key drivers · ▶ ...evaluate and trust AI