fuzzyclust.graph.plot_similarity_dendrogram#
- fuzzyclust.graph.plot_similarity_dendrogram(S, ax=None, method='single', labels=None)[source]#
Dendrogram of fuzzy clusters built from their similarity matrix.
The similarity \(S_{ij}\) (
fuzzy_cluster_similarity()) is turned into the distance \(1-S_{ij}\) and clustered hierarchically (single linkage by default, as in the paper); the height of a merge is the similarity level at which two clusters join.- Parameters:
- Sarray_like
ofshape(n_clusters,n_clusters) - ax
matplotlibAxes,optional - method
str, default=”single” Linkage method of
scipy.cluster.hierarchy.linkage().- labelssequence
ofstr,optional Leaf labels (default
1..c).
- Sarray_like
- Returns:
- ax
matplotlibAxes
- ax
Examples using fuzzyclust.graph.plot_similarity_dendrogram#
Number of clusters: volume-based validity and fuzzy cluster similarity
Number of clusters: volume-based validity and fuzzy cluster similarity