Skip to content

seracio/kohonen-stars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kohonen-stars

Here is an example for our library kohonen, a basic implementation of SOM algorithm in JavaScript

It provides both:

  • a script using the lib to map a dataset from a multidimensional space into a 2d hexagonal grid of neurons
  • and a script to draw the hexagonal grid

capture

Init

yarn

SOM

This example is about classifying 155 stars from their spectral data (2799 by stars). You can read more about this problem by reading this article Application of Self-Organizing Map to stellar spectral classifications included on the repository and on which is based this example.

There is a first script to parse the 2 dat files:

The second script is the SOM calculation itself using our lib (the repository already provides a generated grid)

npm run parse
npm run som

Vis

Visualisation is made with React and d3

npm start

References