You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SOMs, invented by Teuvo Kohonen in the 1980s, are neural networks that produce a low-dimensional (typically 2D) representation of high-dimensional data while preserving topological structure. Similar data points stay close on the map.
Algorithm
Initialize a grid of neurons with random weight vectors
For each input, find the Best Matching Unit (BMU) — neuron with weights closest to the input
Update the BMU and its neighbors to be more similar to the input
Decrease learning rate and neighborhood size over time
Repeat until convergence
Key Parameters
Parameter
Description
Grid Size
Dimensions of the neuron grid (e.g. 10×10)
Learning Rate
How much weights adjust per step — decreases over time
Neighborhood (sigma)
Radius of neurons affected by each update
Epochs
Number of training iterations
Visualizations
Plot
What it shows
U-Matrix
Distances between neurons — dark = cluster boundary
Hit Map
How many data points land on each neuron
Component Planes
How each input feature varies across the map
How Neural Gas Works
Neural Gas (Martinetz & Schulten, 1991) places neurons freely in data space — no grid constraints. Instead of grid distance, it uses rank of distance to determine neighborhood influence.