Skip to main content

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.

image

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

Shield: CC BY-NC 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

CC BY-NC 4.0

Project details


Download files

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

Source Distribution

somu-1.3.0.tar.gz (5.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

somu-1.3.0-cp38-abi3-manylinux_2_34_x86_64.whl (44.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

File details

Details for the file somu-1.3.0.tar.gz.

File metadata

  • Download URL: somu-1.3.0.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for somu-1.3.0.tar.gz
Algorithm Hash digest
SHA256 bfad1df1f262e557aea471636873e207b5217dbb5774f01c1a6e43600167709c
MD5 eb28eb10f75d3439a40e4043e8e8779b
BLAKE2b-256 ccf61c9748b03ff7d0fce4e7eb2e7f7ecddcb5f9564fa5b1c8e68b1f5e3a68cc

See more details on using hashes here.

File details

Details for the file somu-1.3.0-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for somu-1.3.0-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a5f1509ecc296f029465547e99557167a376478f827621700129dfc4cec4abf2
MD5 96044643adde3cd6e3cbef53d6bbee13
BLAKE2b-256 aab8ee58520a12e1d4fc3bdccdf8d5c85f71285309eb7522213509882cfe9659

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page