HDBSCAN Clustering on Iris Flowers

HDBSCAN Clustering on Iris Flowers produced 2 clusters and 2 noise rows (silhouette 0.590, adjusted Rand 0.564 against held-out species).

Results of this run

HDBSCAN stability on Iris Flowers extracts clusters at minClusterSize 5. Stability silhouette is 0.590, stability Calinski-Harabasz is 266.4, stability Davies-Bouldin is 0.585. Held-out species versus stable clusters: adjusted Rand 0.564. 2 noise rows out of 150 fell out of every stable branch. Stable cluster 0 on Iris Flowers holds 50 rows (petal length (cm) 1.46 / petal width (cm) 0.25). Stable cluster 1 on Iris Flowers holds 98 rows (petal length (cm) 4.87 / petal width (cm) 1.67). min_cluster_size sweep: min_cluster_size 5 extracts 0.590 with 2 groups on Iris Flowers; min_cluster_size 8 extracts 0.582 with 2 groups on Iris Flowers; min_cluster_size 15 extracts 0.597 with 2 groups on Iris Flowers. Stability plot keeps 95.8% of variance.

HDBSCAN Clustering on Iris Flowers: PCA plot of 2 clusters and 2 noise rows
Each point is one row. Gray points are noise. Computed 2026-11-02 with scikit-learn 1.4.2.
min_cluster_sizeSilhouetteClusters
50.5902
80.5822
150.5972
# Product HDBSCAN: min_cluster_size=5, min_samples=5, metric=euclidean.
# Features are StandardScaler-transformed before the fit.

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, Iris (Fisher, 1936). License: CC BY 4.0. The species 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.

How HDBSCAN Clustering Works

HDBSCAN extends DBSCAN to handle varying-density clusters. It builds a hierarchy and extracts the most stable clusters automatically.

About the Iris Flowers Dataset

Classic 150-sample dataset with 4 petal/sepal measurements across 3 species. The gold standard for clustering & classification demos. Source: UCI Machine Learning Repository, Iris (Fisher, 1936). License: CC BY 4.0.

Samples. 150

Features. 4

Type. Numeric

Category. Density-based

When to Use HDBSCAN Clustering

HDBSCAN Clustering belongs to the Density-based family of clustering algorithms. These methods identify clusters as regions of high point density separated by regions of low density. They can discover clusters of arbitrary shape.

Related Examples

Ready to try HDBSCAN Clustering on your own data?

Upload a CSV and get instant results — free to start.