Skip to main content

Self Organising Maps in pytorch

Project description

KSOM - Simple, but relatively efficient, pytorch-based self organising map

This is a simple implementation of self-organising map training in python, using pytorch for efficiency. Check test-img.py for a simple use case creating a square color map of an image. To use, try

pip install -r requirements.txt

and then

python test/test_img.py chica.jpg 6

This shoud show an updating 6x6 map of the colours in the chica.jpg image. Change the image or the size of the map by changing the corresponding parameters.

Another example is included in the test_cheese.py creating a map of cheeses based on various binary attributes.

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

ksom-0.9.1.tar.gz (204.2 kB view details)

Uploaded Source

Built Distribution

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

ksom-0.9.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file ksom-0.9.1.tar.gz.

File metadata

  • Download URL: ksom-0.9.1.tar.gz
  • Upload date:
  • Size: 204.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ksom-0.9.1.tar.gz
Algorithm Hash digest
SHA256 c54d3c6947e1805be845a9dc02775696b6c01adaa152e9f2cc5459f3bc11886f
MD5 c77b6d02b0da3d1ccc5f62850220315d
BLAKE2b-256 e59392ea9934d80dbf137d2ab4c2d1feab58af0e15e6a69acb699ae40c1de0aa

See more details on using hashes here.

File details

Details for the file ksom-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: ksom-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ksom-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 704fcf372d252e89f91838007f82023ba5b07bb5844a33ca82a51df6c7d5cca6
MD5 84952414f3a4b91900d50302bba45af5
BLAKE2b-256 fdf632ac98a97d2eed8ac1bd72f914c42fc2a264a416a3c819dad5b56af3aea0

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