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 X for the shares; without it the cells are unshaded.

Parameters:
modelfitted FuzzyKModes or FuzzyKPrototypes

The clusterer whose modes_ are shown.

Xarray_like or DataFrame, optional

The training records (to compute the shares).

axmatplotlib Axes, optional
cmapstr, default=”Blues”
fontsizeint, default=8
Returns:
axmatplotlib Axes

Examples using fuzzyclust.relational.plot_modes#

Fuzzy k-modes on categorical survey data

Fuzzy k-modes on categorical survey data

Fuzzy k-prototypes on mixed numeric and categorical data

Fuzzy k-prototypes on mixed numeric and categorical data