Tensorflow implementation of the Kohonen Self Organizing Map
som.py features the complete implementation and a color clustering example.
NOTE: Tensorflow 2.0 probably makes implementing K-SOM much more easy.
Output from the example: