Clustering using SOM in python

Koteswara picture Koteswara · Nov 29, 2016 · Viewed 11.9k times · Source

I am trying to perform test summarize using self organizing map (SOM) as the clustering model. Do we have any libraries for performing SOM in python.

Answer

blue_note picture blue_note · Nov 29, 2016

There is one here, but in general SOM implementations are not part of the main machine learning libraries. There are two reasons

  • SOM's, although nice to look at, don't really perform well in real problems.
  • It is too easy to construct one by yourself.

I would suggest to make it yourself. It is very easy and a great way to introduce yourself to python. The main code of the SOM itself is about 3 lines (a loop and one update). The remaing of the code would be for loading the data and plotting them, but you won't avoid that part of the code by using an external library