Self Organizing Maps Package
Project description
lightSOM
A Python Library for Self Organizing Map (SOM)
- The library implement fast online training. The implementation of the algorithm is carefully done through matrix calculations, such as
scipy
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).
Quality Measures
After the SOM has been trained, the map needs to be evaluated to find out if it has been optimally trained, or if further training is required. The SOM quality is usually measured with two criteria: quantization error (QE) and topographic error (TE). The QE is the average distance between each data point and its BMU, and TE represents the proportion of all data for which the first and second BMU are not adjacent with respect to the measurement of topology preservation (Kohonen, 2001).
Dependencies:
SOMPY has the following dependencies:
- numpy
- scipy
- scikit-learn
- matplotlib
- pandas
Ecamples
there are various notebooks in the examples directory
Installation:
pip install lightSOM
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 Distributions
Built Distribution
File details
Details for the file lightSOM-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: lightSOM-1.5.0-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 827fa3f26ca9ddbc5e6157ec91eccea532dca9cdcde6c15c143c20536687dc51 |
|
MD5 | 1344b6ed3a3476bcd43b6140504261d7 |
|
BLAKE2b-256 | d466f041b46154889fd8b67475d1e58284e400c3bbe70ceea570502e70957206 |