Self Organizing Maps Package
Project description
lightSOM
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).
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
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.4.3-py3-none-any.whl
.
File metadata
- Download URL: lightSOM-1.4.3-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3139de0aca95ed44721b6b3134bcc5ad687ee7acad6ef4f2b4cd27965c49dca6 |
|
MD5 | fe2232ee87542a422d019c098581cb24 |
|
BLAKE2b-256 | 5db7e5a9f6df98dcd13c67893df5fc8315b4cd85eefde937dc5d4c0efa66fba5 |