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
ofshape(n_samples,n_samples)orfittedensemble Co-association matrix, or a
FuzzyClusterEnsemble. A fitted ensemble suppliescoassociation_andlabels_.- labelsarray_like
ofshape(n_samples,),optional Order of the samples (grouped by label); default: the natural order.
- ax
matplotlibAxes,optional - cmap
str, default=”Greys” - cbarbool, default=True
- show_blocksbool, default=True
Outline the diagonal blocks of the clusters.
- Sarray_like
- Returns:
- ax
matplotlibAxes
- ax
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