numpy based SOM Library
Python
Latest commit ade41b0 Sep 5, 2016 @ttlg committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
examples update README.md Jul 8, 2016
sompy update README.md Jul 8, 2016
.gitignore first commit Jul 6, 2016
LICENSE Initial commit Jul 6, 2016
README.md Update README.md Sep 5, 2016
setup.cfg add examples Jul 8, 2016
setup.py add examples Jul 8, 2016

README.md

sompy

numpy based SOM (Self Organizing Map) Library

Description

Requirement

  • Python2

Install

pip install sompy

Demo

from sompy import SOM
import numpy as np
import matplotlib.pyplot as plt


input_data = np.random.rand(10000, 3)
output_shape = (40, 40)
som = SOM(output_shape, input_data)
som.set_parameter(neighbor=0.1, learning_rate=0.2)

output_map = som.train(10000)

plt.imshow(output_map,
           interpolation='none')
plt.show()

alt tag

License

MIT