fuzzyclust.ensemble.plot_coassociation#

fuzzyclust.ensemble.plot_coassociation(S, labels=None, ax=None, cmap='Greys', cbar=True, show_blocks=True)[source]#

Heat map of a co-association matrix with the samples reordered by (consensus) label.

Parameters:
Sarray_like of shape (n_samples, n_samples) or fitted ensemble

Co-association matrix, or a FuzzyClusterEnsemble. A fitted ensemble supplies coassociation_ and labels_.

labelsarray_like of shape (n_samples,), optional

Order of the samples (grouped by label); default: the natural order.

axmatplotlib Axes, optional
cmapstr, default=”Greys”
cbarbool, default=True
show_blocksbool, default=True

Outline the diagonal blocks of the clusters.

Returns:
axmatplotlib Axes

Examples using fuzzyclust.ensemble.plot_coassociation#

Consensus of soft clusterings: a library beats a single run

Consensus of soft clusterings: a library beats a single run

The lifetime criterion of evidence accumulation

The lifetime criterion of evidence accumulation