NNSOM.plots.SOMPlots.component_planes

SOMPlots.component_planes(X)[source]

Visualizes the weight distribution across different features in a Self-Organizing Map (SOM) using a series of 2D plots.

This method creates a grid of subplots where each subplot represents the weight distribution for a specific feature of the input data. The weight of each neuron for the given feature is represented in the plot by the color of a hexagonal cell, with darker colors indicating higher weights. This visualization helps in understanding the importance and distribution of each feature across the map.

Parameters:

X (array-like) – A 2D array of input data where each row represents a feature and each column represents a sample.