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
ofshape(n_objects,n_items) - model
fittedFCCMorFCoDoK, - optional
Its
labels_,membership_,item_labels_anditem_membership_define the order; alternatively giverow_labelsandcol_labels.- row_labels, col_labelsarray_like,
optional Explicit (hard) co-cluster labels of rows and columns (
-1is sorted last).- ax
matplotlibAxes,optional - cmap
str, default=”Greys” - show_blocksbool, default=True
- cbarbool, default=True
- **kwargs
Passed to
matplotlib.axes.Axes.imshow().
- Rarray_like
- Returns:
- ax
matplotlibAxes
- ax