fuzzyclust.viz.plot_som_lattice#
- fuzzyclust.viz.plot_som_lattice(som, X=None, dims=(0, 1), ax=None, labels=None, s=10, **kwargs)[source]#
Prototypes of a fuzzy SOM in the data space, with grid neighbors connected.
Shows how the map “folds” into the data: an ordered map has a regular, non-crossing lattice, an unordered one (
regularization=0) a tangle.- Parameters:
- som
fittedFuzzySOM - Xarray_like
ofshape(n_samples,n_features),optional Data to draw in the background.
- dims
tupleoftwoint, default=(0, 1) Which two features to plot.
- labelsarray_like
ofshape(n_samples,),optional Color code of the data points.
- som
Examples using fuzzyclust.viz.plot_som_lattice#
Fuzzy self-organizing map: ordered prototypes by regularized FCM
Fuzzy self-organizing map: ordered prototypes by regularized FCM