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.

Configure
In the left panel:
- Dataset: the dataset to cluster.
- Variables: the numeric columns that define similarity. You can check several, All, or None.
- Workflow: the method.
| Workflow | How it groups |
|---|---|
| K-means | Splits 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. |
| Hierarchical | Builds a dendrogram with a Distance metric and a Linkage, and cuts it at a Cut distance. |
| GSOM | Trains a growing self-organizing map; review the U-matrix and the Cluster map. |
| Reusable models | Applies 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
- Enter the Number of clusters and press Preview clusters. You will see the notification Cluster preview ready.
- 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.
- Under Save clusters, change each cluster’s Label if you want (for example High grade, Low grade). Labels must be unique.
- 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.
- Press Save clusters. You will see Clusters saved to Clusters. Discard deletes the preview without saving.

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.