fuzzyclust.validity#
Cluster validity indices and model-order (number of clusters) selection.
All index functions share the signature index(X, U, V, m=2.0) where
Xis the data matrix \(\mathbf{X}\) of shape(n_samples, n_features),Uthe fuzzy partition \(\mathbf{U}^T\) of shape(n_samples, n_clusters),Vthe prototypes \(\mathbf{V}\) of shape(n_clusters, n_features),mthe fuzziness exponent used by the clustering algorithm.
Indices that need only the partition (PC, CE, MPC) ignore X and V;
indices that evaluate crisp clusters (DI, ADI, silhouette) harden the
partition first. Distances between data and prototypes are Euclidean, which
is the common convention in the validity literature; algorithm specific norms
are therefore not used here.
Two further groups of tools live here: external comparisons of two fuzzy
partitions (the fuzzy Rand, adjusted Rand and Jaccard indices of
Hüllermeier et al. and of Campello) and the stability-based selection of
the number of clusters (Ben-Hur et al.; Lange et al.), which resamples the
data and asks for which n_clusters the partitions agree.
Validity indices and the selection of the number of clusters.
Functions#
|
Partition coefficient (Bezdek). |
|
Classification (partition) entropy (Bezdek). |
|
Modified partition coefficient (Davé, 1996). |
|
Partition index SC (Bensaid et al., 1996). |
|
Separation index S: Xie--Beni in its original form, with squared memberships (Xie and Beni, 1991). |
|
Xie–Beni index (Xie & Beni, 1991). |
|
Fukuyama–Sugeno index (1989). |
|
Dunn's index (1974) on the hardened partition. |
|
Alternative Dunn index (ADI) of the MATLAB toolbox. |
|
Mean silhouette coefficient (Rousseeuw, 1987) of the hardened partition. |
|
Fuzzy hypervolume \(FHV = \sum_i \sqrt{\det\mathbf{F}_i}\) (Gath & Geva, 1989). |
|
Partition density \(PD = \sum_i S_i / FHV\) (Gath & Geva, 1989). |
|
Average partition density (Gath & Geva). |
|
PBM-F index (Pakhira, Bandyopadhyay & Maulik, 2004). |
|
Kwon's index (1998). |
|
Partition coefficient and exponential separation, PCAES (Wu & Yang, 2005). |
|
Fuzzy Rand index between two fuzzy partitions of the same samples. |
|
Fuzzy adjusted Rand index (chance-corrected), from the fuzzy pair counts of |
|
Fuzzy Jaccard index \(a/(a+b+c)\) from the fuzzy pair counts of |
|
Stability of the partition against resampling, for every number of clusters. |
|
Evaluate several validity indices at once. |
|
Fit the estimator for several numbers of clusters and tabulate validity indices. |
|
Optimal number of clusters suggested by every index of a scan table. |
Constants#
For every index: |