fuzzyclust.cluster.cluster_similarity#

fuzzyclust.cluster.cluster_similarity(U)[source]#

Pairwise similarity of fuzzy clusters from their membership columns (fuzzy Jaccard index).

\[S_{ij}=\frac{\sum_{k=1}^{N}\min(\mu_{ik},\mu_{jk})}{\sum_{k=1}^{N}\max(\mu_{ik},\mu_{jk})},\]

the fuzzy Jaccard similarity of the clusters seen as fuzzy sets over the samples (Setnes et al., 1998): one for identical columns, zero for disjoint supports. Kaymak and Setnes (2002), whose adaptive cluster merging motivates this criterion, use a fuzzy inclusion measure instead, \(S_{ij}=\max(I_{ij},I_{ji})\) with \(I_{ij}=\sum_k\min(\mu_{ik},\mu_{jk})/\sum_k\mu_{ik}\); the toolbox uses the symmetric Jaccard form with a fixed threshold.

Parameters:
Undarray of shape (n_samples, n_clusters)
Returns:
Sndarray of shape (n_clusters, n_clusters)

Symmetric, with ones on the diagonal.

Examples using fuzzyclust.cluster.cluster_similarity#

Three routes to the number of clusters: merging, validity scan, and stability

Three routes to the number of clusters: merging, validity scan, and stability