Skip to main content

Unsupervised topological learning preserving neighborhood relationships, modeling biological cortical organization

Project description

💰 Support This Research - Please Donate!

🙏 If this library helps your research or project, please consider donating to support continued development:

💳 DONATE VIA PAYPAL - CLICK HERE

CI PyPI version Python 3.9+ License


Self-Organizing Maps

🗺️ Unsupervised learning and visualization

Kohonen, T. (1982) - "Self-organized formation of topologically correct feature maps"

📦 Installation

pip install self-organizing-maps

🚀 Quick Start

import self_organizing_maps
import numpy as np

# Create sample 2D data
data = np.random.randn(500, 3)

# Create SOM
som = self_organizing_maps.SelfOrganizingMap(
    map_size=(10, 10),
    input_dim=3,
    learning_rate=0.5
)

# Train the SOM
som.train(data, epochs=100)

# Find best matching unit for new data
test_point = np.random.randn(3)
winner = som.find_winner(test_point)
print(f"✅ Best matching unit: {winner}")

# Visualize with built-in tools
visualizer = self_organizing_maps.SOMVisualizer(som)
visualizer.plot_map()

🎓 About the Implementation

Implemented by Benedict Chen - bringing foundational AI research to modern Python.

📧 Contact: benedict@benedictchen.com

📖 Citation

If you use this implementation in your research, please cite the original paper:

Kohonen, T. (1982) - "Self-organized formation of topologically correct feature maps"

📜 License

Custom Non-Commercial License with Donation Requirements - See LICENSE file for details.


💰 Support This Work - Donation Appreciated!

This implementation represents hundreds of hours of research and development. If you find it valuable, please consider donating:

💳 DONATE VIA PAYPAL - CLICK HERE

Your support helps maintain and expand these research implementations! 🙏

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

self_organizing_maps-1.1.0.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

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

self_organizing_maps-1.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file self_organizing_maps-1.1.0.tar.gz.

File metadata

  • Download URL: self_organizing_maps-1.1.0.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3+

File hashes

Hashes for self_organizing_maps-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c7cc18a9879bc4d8a8dcfed532fbde100060cc7b691779423bc2f8c3b0dfb58a
MD5 fd4bcd30556e2a84512a15f45843df6d
BLAKE2b-256 990ca906dd3a8b7ffd5d9d1461a143721b0d2f7eaa38fce03c2a8e6aa0bbed0e

See more details on using hashes here.

File details

Details for the file self_organizing_maps-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for self_organizing_maps-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 257e071a9f22565ac18d89d7bfb7a50441d122e6d7f5d96ea8a5c1b05fd0d980
MD5 45959f16bf2b015b0108688b1cff15d3
BLAKE2b-256 a7c7db091fcd61b39d732031b51c0e571b7356bc88055ae2c94d3ef3b6f2b52e

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