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:
- som
fittedFuzzySOMwitha1-D or 2-Dgrid - 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 (needsfeature);"hits": fuzzy hit histogram \(\sum_k\mu_{ik}\) of the training data or ofX.- feature
intorstr,optional Feature index (or name from
feature_names_in_) forkind="component".- Xarray_like,
optional Data for the hit histogram (default: training partition).
- annotatebool, default=False
Write the value into every cell.
- som
Examples using fuzzyclust.viz.plot_map#
Fuzzy self-organizing map: ordered prototypes by regularized FCM
Fuzzy self-organizing map: ordered prototypes by regularized FCM