Prototypes live on a fixed lattice; the winner and its LATTICE neighbours move toward each observation. Dragging the neighbours along is what separates a SOM from k-means – it forces prototypes adjacent on the grid to be adjacent in data space, which is what makes the map usable as a display. If the neighbourhood width decays too fast the SOM degenerates into online k-means, which is the usual cause of a map showing no topological ordering.
Usage
morie_esl_self_organize(
X,
grid = c(5L, 5L),
eta = 0.5,
n_epochs = 50L,
sigma0 = NULL,
seed = 0L
)