Results of this run
Ward agglomerative merges of Wine (UCI wine recognition) stop at k=3, linkage=ward. Ward silhouette is 0.277, Ward Calinski-Harabasz is 67.6, Ward Davies-Bouldin is 1.419. Held-out wine_class versus the Ward cut: adjusted Rand 0.790. 0 noise rows out of 178 after the merges. Ward merge 0 on Wine (UCI wine recognition) holds 64 rows (proline 1076.0 / magnesium 106.2). Ward merge 1 on Wine (UCI wine recognition) holds 56 rows (proline 624.9 / magnesium 99.86). Ward merge 2 on Wine (UCI wine recognition) holds 58 rows (proline 501.4 / magnesium 92.55). Ward k path: k 2 merges to 0.267 with 2 groups on Wine (UCI wine recognition); k 3 merges to 0.277 with 3 groups on Wine (UCI wine recognition); k 4 merges to 0.226 with 4 groups on Wine (UCI wine recognition); k 5 merges to 0.187 with 5 groups on Wine (UCI wine recognition); k 6 merges to 0.180 with 6 groups on Wine (UCI wine recognition); k 7 merges to 0.187 with 7 groups on Wine (UCI wine recognition); k 8 merges to 0.188 with 8 groups on Wine (UCI wine recognition). Ward scatter keeps 55.4%.

| k | Silhouette | Clusters |
|---|---|---|
| 2 | 0.267 | 2 |
| 3 | 0.277 | 3 |
| 4 | 0.226 | 4 |
| 5 | 0.187 | 5 |
| 6 | 0.180 | 6 |
| 7 | 0.187 | 7 |
| 8 | 0.188 | 8 |
from sklearn.cluster import AgglomerativeClustering
from sklearn.preprocessing import StandardScaler
Xs = StandardScaler().fit_transform(X)
labels = AgglomerativeClustering(n_clusters=3, linkage='ward').fit_predict(Xs)
Who, how, and why
Method: StandardScaler, drop constant columns. Code version 3e4afc4b4352 (scripts/seo/build_explore_artifacts.py). scikit-learn 1.4.2. Seed 42. Dataset source: UCI Machine Learning Repository, wine recognition. License: CC BY 4.0. The wine_class column was held out of the fit and used only for the adjusted Rand score.
Results computed on 2026-11-02.
The results paragraph is filled from these numbers by a fixed template in the site code, so the scores can be checked against the same dataset in the tool.
Maintainer: nikolaou1982.
Contact: nick1982100@gmail.com.
