Results of this run
Spectral clustering embeds Wine (UCI wine recognition) with an RBF affinity and cuts k=3, affinity=rbf. Graph silhouette is 0.283, graph Calinski-Harabasz is 70.5, graph Davies-Bouldin is 1.387. Held-out wine_class versus the graph cut: adjusted Rand 0.930. 0 noise rows out of 178 in the embedding. Graph group 0 on Wine (UCI wine recognition) holds 69 rows (proline 514.0 / magnesium 93.12). Graph group 1 on Wine (UCI wine recognition) holds 49 rows (proline 627.6 / magnesium 99.02). Graph group 2 on Wine (UCI wine recognition) holds 60 rows (proline 1112.2 / magnesium 108.0). Spectral k path: k 2 cuts 0.265 with 2 groups on Wine (UCI wine recognition); k 3 cuts 0.283 with 3 groups on Wine (UCI wine recognition); k 4 cuts 0.240 with 4 groups on Wine (UCI wine recognition); k 5 cuts 0.188 with 5 groups on Wine (UCI wine recognition); k 6 cuts 0.198 with 6 groups on Wine (UCI wine recognition); k 7 cuts 0.189 with 7 groups on Wine (UCI wine recognition); k 8 cuts 0.198 with 8 groups on Wine (UCI wine recognition). Graph scatter keeps 55.4%.

| k | Silhouette | Clusters |
|---|---|---|
| 2 | 0.265 | 2 |
| 3 | 0.283 | 3 |
| 4 | 0.240 | 4 |
| 5 | 0.188 | 5 |
| 6 | 0.198 | 6 |
| 7 | 0.189 | 7 |
| 8 | 0.198 | 8 |
from sklearn.cluster import SpectralClustering
from sklearn.preprocessing import StandardScaler
Xs = StandardScaler().fit_transform(X)
labels = SpectralClustering(n_clusters=3, random_state=42).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.
