Skip to main content

Self-Organizing Map algorithm.

Project description

Travis Codecov CircleCI ReadTheDocs PythonVersion Pypi Conda


Implementation of Self-Organizing Map algorithm [1] that is compatible with scikit-learn API. It provides a wrapper class around Somoclu.


Installation documentation, API documentation, and examples can be found on the documentation.


som-learn is tested to work under Python 3.6+. The dependencies are the following:

  • scikit-learn(>=0.21)
  • somoclu(>=1.7.5)

Additionally, to run the examples, you need matplotlib(>=2.0.0) and pandas(>=0.22).


som-learn is currently available on the PyPi’s repository and you can install it via pip:

pip install -U som-learn

The package is released also in Anaconda Cloud platform:

conda install -c algowit som-learn

If you prefer, you can clone it and run the file. Use the following commands to get a copy from GitHub and install all dependencies:

git clone
cd som-learn
pip install .

Or install using pip and GitHub:

pip install -U git+


After installation, you can use pytest to run the test suite:

make test


[1]T. Kohonen, M. R. Schroeder, T. S. Huang, “Self-Organizing Maps”, Springer-Verlag, 2001.

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for som-learn, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size som_learn-0.1.0-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size som-learn-0.1.0.tar.gz (7.9 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page