A package for constructing and evaluating self-organizing maps.
Project description
popsom7
popsom7 is a Python package that provides a collection of routines for constructing and evaluating self-organizing maps. The functionality includes:
- Building a SOM with customizable dimensions and training parameters.
- Generating summary statistics for the SOM.
- Visualizing the map (e.g., starburst/heat map display).
- Assessing feature significance and marginal density plots among other quality measures.
- Predicting classifications and positions for new data points.
- Ease of use and easily accessible data models are one of the hallmarks of this module.
Installation
You can install popsom7 via pip:
pip install popsom7
Usage
Below is a quick example:
import pandas as pd
from popsom7 import maputils
# Load your data (for example, a CSV file)
data = pd.read_csv('iris.csv')
# Optionally, separate out labels if available
labels = data[['Species']]
data = data.drop(columns=['Species'])
# Build the SOM
som_map = maputils.map_build(data, labels=labels, xdim=10, ydim=5, alpha=0.3, train=1000, normalize=True, seed=42)
# Print a summary of the map
maputils.map_summary(som_map)
# Display the starburst (heat map) visualization
maputils.map_starburst(som_map)
Documentation
Documentation of the API can be found here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
popsom7-7.0.0.tar.gz
(12.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
popsom7-7.0.0-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file popsom7-7.0.0.tar.gz.
File metadata
- Download URL: popsom7-7.0.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1580b16d74b0e8788ce5bb22c98b7d5391c7a4a5830d2d80ee7cbf3df4536708
|
|
| MD5 |
3b38af6d0d5e6fdbfd40d004aa8f86c4
|
|
| BLAKE2b-256 |
2df98c2c6398bcbde9b8b367fde1e87be0c9bc71959b2819df93bdd255904dc1
|
File details
Details for the file popsom7-7.0.0-py3-none-any.whl.
File metadata
- Download URL: popsom7-7.0.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d55a51ca6d63a8c7ff5f2201db91d8d80516e144c681a18a86060de1f7bf33
|
|
| MD5 |
75f5474b3a3d20d7da11858ec0963d11
|
|
| BLAKE2b-256 |
3352a2ca833890a3d0b183c4cd301ff819bdd0b9d3a662d099f3d8968c33aad3
|