fuzzyclust.validity.dunn_index#
- fuzzyclust.validity.dunn_index(X, U, V=None, m=2.0)[source]#
Dunn’s index (1974) on the hardened partition.
\[DI = \min_{i}\min_{j\neq i}\left\{ \frac{\min_{\mathbf{x}\in C_i,\mathbf{y}\in C_j} d(\mathbf{x},\mathbf{y})} {\max_{l}\max_{\mathbf{x},\mathbf{y}\in C_l} d(\mathbf{x},\mathbf{y})}\right\}\]Smallest inter-cluster distance over the largest cluster diameter. Higher is better. Designed for compact, well separated clusters; unreliable for overlapping ones and \(O(N^2)\) to compute.