fuzzyclust.coclustering.plot_coclusters#

fuzzyclust.coclustering.plot_coclusters(R, model=None, row_labels=None, col_labels=None, ax=None, cmap='Greys', show_blocks=True, cbar=True, **kwargs)[source]#

Heat map of an object–item matrix with rows and columns reordered by co-cluster.

Rows are sorted by their (hard) co-cluster and, within a co-cluster, by decreasing membership; columns likewise by their item co-cluster. The boundaries of the co-clusters are drawn as colored lines, so that the blocks the algorithm found appear along the diagonal.

Parameters:
Rarray_like of shape (n_objects, n_items)
modelfitted FCCM or FCoDoK,
optional

Its labels_, membership_, item_labels_ and item_membership_ define the order; alternatively give row_labels and col_labels.

row_labels, col_labelsarray_like, optional

Explicit (hard) co-cluster labels of rows and columns (-1 is sorted last).

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

Passed to matplotlib.axes.Axes.imshow().

Returns:
axmatplotlib Axes

Examples using fuzzyclust.coclustering.plot_coclusters#

Fuzzy co-clustering of a document–term matrix

Fuzzy co-clustering of a document--term matrix