← User manual

Clustering

Group the rows of a dataset into clusters with K-means, Gaussian mixture, hierarchical, or GSOM, and save the result as a column.

The Clustering module groups the rows of a dataset by the similarity of their numeric variables, for example to separate geochemical populations. The result is saved as a new categorical column that you can use in EDA 2D, EDA 3D, or as a category in other modules.

K-means cluster preview

Configure

In the left panel:

  1. Dataset: the dataset to cluster.
  2. Variables: the numeric columns that define similarity. You can check several, All, or None.
  3. Workflow: the method.
WorkflowHow it groups
K-meansSplits into k groups by distance to the center of each group. Fast and simple.
Gaussian mixture (GMM)Fits k normal distributions. Choose the Covariance type: Full, Tied, Diagonal, or Spherical.
HierarchicalBuilds a dendrogram with a Distance metric and a Linkage, and cuts it at a Cut distance.
GSOMTrains a growing self-organizing map; review the U-matrix and the Cluster map.
Reusable modelsApplies a previously saved model to another dataset.

Choose the number of clusters

  • K-means: under Silhouette analysis, set the Maximum clusters and press Analyze silhouette. The application suggests a k (for example suggested k = 3 (silhouette 0.41)); press Use to apply it.
  • GMM: Analyze BIC/AIC suggests the number of components based on the chosen Criterion.
  • Hierarchical: Compute dendrogram shows the tree and the distance heatmap so you can choose the cut.

Preview and save

  1. Enter the Number of clusters and press Preview clusters. You will see the notification Cluster preview ready.
  2. Review the result on the right:
    • Summary: variables used, Total rows, Clustered rows, Skipped rows (rows with empty values), and the Count per cluster.
    • Chart: one box per cluster for each variable. log Y switches to a logarithmic scale and the camera exports the image.
    • Table: the values per row with their cluster.
  3. Under Save clusters, change each cluster’s Label if you want (for example High grade, Low grade). Labels must be unique.
  4. Enter the Output column (by default Clusters). Check Save reusable model and give it a name if you want to apply it to other datasets later.
  5. Press Save clusters. You will see Clusters saved to Clusters. Discard deletes the preview without saving.

Box plot by cluster

Reusable models

With the Reusable models workflow, choose a saved Model, map the Target variables in model order from the new dataset, and press View clusters. Import models loads models from a file.

Common issues

  • This preview is from another dataset: you switched datasets; preview again before saving.
  • A column with this name already exists: change the Output column.
  • Not enough complete rows for this number of components (GMM): use fewer components or variables with fewer empty values.