graphclust.validity#

Cluster validity for graph-based clustering.

  • dunn_mst_index() – Dunn-like index with MST-based diameters (Pal and Biswas 1997);

  • fukuyama_sugeno() – compactness minus separation (Fukuyama and Sugeno 1989);

  • fuzzy_hypervolume() – total volume of the Gaussian clusters (Gath and Geva 1989);

  • dbcv() – density-based clustering validation on mutual reachability MSTs (Moulavi et al. 2014);

  • clustering_rate() – share of correctly grouped samples after optimal label matching;

  • eigengap() – number of clusters suggested by the spectrum of a graph.

Dunn-MST, Fukuyama-Sugeno, fuzzy hypervolume, DBCV, eigengap and clustering rate.

Functions#

clustering_rate(y_true, y_pred)

Fraction of samples in correctly matched clusters (Hungarian matching of the labels).

dbcv(X, labels)

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

dunn_mst_index(X, labels)

Dunn-like index with MST diameters: \(\min_{i\ne j}\delta(C_i,C_j)/\max_k\mathrm{diam}(C_k)\).

eigengap(affinity[, max_clusters])

Number of clusters suggested by the spectrum of a graph, and the eigenvalues.

fukuyama_sugeno(X, U[, m])

Fukuyama--Sugeno index \(\sum_k\sum_i\mu_{ik}^m(\|\mathbf{x}_k-\mathbf{v}_i\|^2-\|\mathbf{v}_i-\bar{\mathbf{v}}\|^2)\); smaller is better.

fuzzy_hypervolume(X, U[, m, per_cluster])

Fuzzy hypervolume \(\mathrm{FHV}=\sum_i\sqrt{\det\mathbf{F}_i}\) (Gath and Geva 1989); smaller is better.