Skip to content

ttlg/sompy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

numpy based SOM Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages