A simple high-performance implementation of the Self-Organizing Map (SOM) algorithm in Rust, exposed as a Python module.
Project description
self-organizing-map
A high-performance implementation of the Self-Organizing Map (SOM) algorithm in Rust, exposed as a Python module.
Installtion
This module interfaces with the ArrayFire library (version 3.8.0). To ensure proper functionality, make sure the ArrayFire shared libraries are discoverable by the system. You can do this by updating your LD_LIBRARY_PATH environment variable:
export LD_LIBRARY_PATH=/path/to/arrayfire/lib64:$LD_LIBRARY_PATH
Then to install the latest version of the package from PyPI, simply run:
pip install somu
Usage
from somu import som
from numpy import random
data = random.rand(1000, 2)
som(data, (10, 10))
Demo requirements
Before running the demos make sure to have the required packages installed:
pip install -r demos/requirements.txt
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file somu-1.1.1.tar.gz.
File metadata
- Download URL: somu-1.1.1.tar.gz
- Upload date:
- Size: 5.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13886b154df9b39acc67a0d3298fabd3f28053b125e0197d8b668c29a8d2d74e
|
|
| MD5 |
6a346517770fb88d1dd8a86b8c2d4120
|
|
| BLAKE2b-256 |
032687444c791de82caf800e56667c53b283e948b761d26899a3d84123015e54
|
File details
Details for the file somu-1.1.1-cp38-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: somu-1.1.1-cp38-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 44.7 MB
- Tags: CPython 3.8+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83232eedbe6f392e3a3097abe2196616e9c87938425f2c562caf9ab054d6fde6
|
|
| MD5 |
d2ec00841b633d913e2f1861e372e3a8
|
|
| BLAKE2b-256 |
082babd8b13217e3650b8d92d87b4a07b004f553ce86de24ef52cbe9188efdd5
|