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:
somfitted FuzzySOM
Xarray_like of shape (n_samples, n_features), optional

Data to draw in the background.

dimstuple of two int, default=(0, 1)

Which two features to plot.

labelsarray_like of shape (n_samples,), optional

Color code of the data points.

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