Skip to main content
100%

Kohonen SOM

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Sep 6, 2016
Created on Sep 5, 2016

Fil demonstrates a self-organizing map (SOM) as an animated SVG using d3.js and the kohonen library. The visualization initializes a grid of neurons and 500 random RGB data points, then runs a training phase where neurons migrate to fit the data, with each neuron filled according to its learned color value. The code transitions the neurons' fills and positions over four seconds, while the data points are scattered around their nearest matching neurons. Alternative color spaces—rgb, hsl, lab, and cubehelix—are linked for comparison.

AI-generated description

Creating a self-organizing map (SOM)

First tentative.

Made by Philippe Rivière with <a href="https://d3js.org/">d3.js</a> and <a href="https://github.com/seracio/kohonen">seracio/kohonen</a>.

Same maths, differents color spaces:

<a href='http://bl.ocks.org/Fil/ae11126ae728cb2af627db6a3dfa756b'>d3.rgb()</a>

<a href='http://bl.ocks.org/Fil/77442da6f83ad6e36076b5ebe38d63da'>d3.hsl()</a>

<a href='http://bl.ocks.org/Fil/1832095c0cc2ccfa07c11e2fcb8f723d'>d3.lab()</a>

<a href='http://bl.ocks.org/Fil/70dccbad91ffcf253387645fadb94614'>d3.cubehelix()</a>

mit Licensed

Similar vizzes