Self Organizing Maps Package
Project description
SOMPY
This repository was forked from the original repository at https://github.com/sevamoo/SOMPY to modify it in order to make the package installable via pip.
Changes
- Changed package name to "sompy-package" to avoid conflict with already existing "sompy" package on PyPI
- Refactored package replacing deprecated setup.py with pyproject.toml
- Updated dependencies to include scikit-image
- General code cleanup and formatting
WIP:
- Upload package to PyPI
All of the following is the original README file from the creator of the repo.
Original README
A Python Library for Self Organizing Map (SOM)
As much as possible, the structure of SOM is similar to somtoolbox
in Matlab. It has the following functionalities:
- Only Batch training, which is faster than online training. It has parallel processing option similar to
sklearn
format and it speeds up the training procedure, but it depends on the data size and mainly the size of the SOM grid.I couldn't manage the memory problem and therefore, I recommend single core processing at the moment. But nevertheless, the implementation of the algorithm is carefully done for all those important matrix calculations, such asscipy
sparse matrix andnumexpr
for calculation of Euclidean distance. - PCA (or RandomPCA (default)) initialization, using
sklearn
or random initialization. - component plane visualization (different modes).
- Hitmap.
- U-Matrix visualization.
- 1-d or 2-d SOM with only rectangular, planar grid. (works well in comparison with hexagonal shape, when I was checking in Matlab with somtoolbox).
- Different methods for function approximation and predictions (mostly using Sklearn).
Dependencies:
SOMPY has the following dependencies:
- numpy
- scipy
- scikit-learn
- numexpr
- matplotlib
- pandas
- ipdb
Installation:
python setup.py install
Many thanks to @sebastiandev, the library is now standardized in a pythonic tradition. Below you can see some basic examples, showing how to use the library. But I recommend you to go through the codes. There are several functionalities already implemented, but not documented. I would be very happy to add your new examples here.
Citation
There is no published paper about this library. However if possible, please cite the library as follows:
@misc{moosavi2014sompy,
title={SOMPY: A Python Library for Self Organizing Map (SOM)},
author={Moosavi, V and Packmann, S and Vall{\'e}s, I},
note={GitHub.[Online]. Available: https://github.com/sevamoo/SOMPY},
year={2014}
}
For more information, you can contact me via sevamoo@gmail.com but please report an issue first.
Thanks a lot. Best Vahid Moosavi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sompy_package-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cee41daec14a76ec0e4fb61521aec203dce049fd96996bae5cbb1a47f4894d |
|
MD5 | d66eb32f03cbc1518cf8628427d1c4fe |
|
BLAKE2b-256 | 13b3565af9c07a55580aeed2623e2d25bf4d08883afcff7d73e4f370848c5444 |