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.2.1.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.2.1-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.2.1.tar.gz.

File metadata

  • Download URL: somu-1.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 380baf19af99af1753c72c36c49f3136873bd28562eab83e79b924fa91d88949
MD5 1574a70b2c5d1f279a7d025e1b8f5133
BLAKE2b-256 2205f55bdf25470e4ddc8596c91d7c78213105a18e15925324063261f752314c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for somu-1.2.1-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 315401292b2c33daa12e4f3a54a816125e8cf1f53c279aba1cb8411c527f4c9a
MD5 a3c1e892e6eea29ccc1145db667a2b6e
BLAKE2b-256 b193d5c4ccbea2169e14eeeaa05a29bb5d18070941fddca98e9661e44f19659d

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