graphclust.validity.dbcv#

graphclust.validity.dbcv(X, labels)[source]#

Density-based clustering validation (DBCV; Moulavi, Jaskowiak, Campello, Zimek and Sander 2014).

Within each cluster the all-points core distance \(a(\mathbf{x})=\big(\frac{1}{n_i-1}\sum_{\mathbf{y}\ne\mathbf{x}} d(\mathbf{x},\mathbf{y})^{-D}\big)^{-1/D}\) defines mutual reachability distances and an MST. The density sparseness of a cluster is the largest internal MST edge, the density separation of two clusters the smallest mutual reachability distance between their internal nodes. The validity of a cluster is \((\mathrm{sep}-\mathrm{sparse})/\max(\mathrm{sep},\mathrm{sparse})\) and DBCV is their size-weighted mean (noise counted in the total). Range \([-1,1]\), larger is better; unlike centroid-based indices it rewards arbitrarily shaped, density-separated clusters.

Examples using graphclust.validity.dbcv#

HDBSCAN*: density-corrected spanning trees

HDBSCAN*: density-corrected spanning trees