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 of shape (n_clusters, n_clusters)
axmatplotlib Axes, optional
methodstr, default=”single”

Linkage method of scipy.cluster.hierarchy.linkage().

labelssequence of str, optional

Leaf labels (default 1..c).

Returns:
axmatplotlib Axes

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