seracio / kohonen-stars

Home Page:https://seracio.github.io/kohonen-stars/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

https://seracio.github.io/kohonen-stars/


Languages

Language:JavaScript 85.1%Language:HTML 14.9%