fuzzyclust.relational.plot_modes#
- fuzzyclust.relational.plot_modes(model, X=None, ax=None, cmap='Blues', fontsize=8)[source]#
Table of the fitted modes, shaded by how much membership mass the mode carries.
Every cell shows the modal category of one cluster (row) in one categorical attribute (column); its shade is the share of the cluster’s membership mass \(\sum_k\mu_{ik}^m\) that falls on this category, i.e. how unanimous the cluster is in that attribute (1 = all members agree). Requires the training data
Xfor the shares; without it the cells are unshaded.- Parameters:
- model
fittedFuzzyKModesorFuzzyKPrototypes The clusterer whose
modes_are shown.- Xarray_like or
DataFrame,optional The training records (to compute the shares).
- ax
matplotlibAxes,optional - cmap
str, default=”Blues” - fontsize
int, default=8
- model
- Returns:
- ax
matplotlibAxes
- ax
Examples using fuzzyclust.relational.plot_modes#
Fuzzy k-prototypes on mixed numeric and categorical data
Fuzzy k-prototypes on mixed numeric and categorical data