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.1.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.1.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.1.0.tar.gz.

File metadata

  • Download URL: somu-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 634e4740f34f163c94dcfa79334ea55db889c927a0c5c97b9fa40d0be96cd839
MD5 fc10ef45d25c11ed753e923b756fbc12
BLAKE2b-256 5362e07512a0f32c32263159f707f4ce159f9694bdad2b7d355b1f57320bc2df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for somu-1.1.0-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2ee8a76cbfa1ce2944d7296e635fc69d0b878bfffe2d6209ea04a7fc76327425
MD5 6d04416595a4b98d01d320066efdf785
BLAKE2b-256 482362a6fc27035b43b8536fd79a8b8a9f1a29caadbafeb6e6813cabb63571c4

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