Kohonen self organising map
Simple implementation of Kehonen's Self Organising Map with a couple of examples. Can work in both browser and nodejs.
Preview of the units adjusting their vectors to fill a sample uniform 2d space:
Preview of unit vectors moving around in 2d space (left) and the classification of 2d samples (right). Each colour represents a different unit that classifies the sample:
Preview of static units on the left as a grid, and as moving units as they adjust on the right: