fuzzyclust.viz.plot_map#

fuzzyclust.viz.plot_map(som, kind='umatrix', feature=None, X=None, ax=None, cmap=None, annotate=False, **kwargs)[source]#

Draw a fuzzy SOM as a colored grid: U-matrix, a component plane or the hit histogram.

Parameters:
somfitted FuzzySOM with a 1-D or 2-D grid
kind{“umatrix”, “component”, “hits”}, default=”umatrix”

"umatrix": mean prototype distance to the grid neighbors (large = border between groups); "component": value of one feature of the prototypes over the grid (needs feature); "hits": fuzzy hit histogram \(\sum_k\mu_{ik}\) of the training data or of X.

featureint or str, optional

Feature index (or name from feature_names_in_) for kind="component".

Xarray_like, optional

Data for the hit histogram (default: training partition).

annotatebool, default=False

Write the value into every cell.

Examples using fuzzyclust.viz.plot_map#

Fuzzy self-organizing map: ordered prototypes by regularized FCM

Fuzzy self-organizing map: ordered prototypes by regularized FCM