Skip to main content

PyMinimax

Gitpod Ready-to-Code Documentation Status build codecov image Downloads Downloads License

PyMinimax is a Python implementation of minimax-linkage hierarchical clustering.

Installation

pip install pyminimax

Usage

from pyminimax import minimax
from scipy.spatial.distance import pdist
from scipy.cluster.hierarchy import complete

data = [[0, 0], [0, 1], [1, 0], [0, 4], [0, 3], [1, 4], [4, 0], [3, 0], [4, 1], [4, 4], [3, 4], [4, 3]]

dist = pdist(data)              # flattened distance matrix computed by scipy

Z_complete = complete(dist)     # complete linkage result
Z_minimax = minimax(dist)       #  minimax linkage result

The most important function in PyMinimax is pyminimax.minimax. Its usage is very much similar to the hierarchical clustering methods in SciPy, say scipy.cluster.hierarchy.complete. See the documentation for more details.

Metadata

Release files for pyminimax 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyminimax 0.1.2
File Size Uploaded
pyminimax-0.1.2.tar.gz 7.3 kB Details

Release files / pyminimax-0.1.2.tar.gz

Download URL pyminimax-0.1.2.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
90f632c513d6f53d9e3bce9c5ae1a7bda7fa9e77d4c5ebec2b9e157921f27d6b
BLAKE2b-256 checksum
How to use checksums
33c2285233d7dcf9012901a5403500396c7aa7ffacca2b72142e2fdae24ff69b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.10

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page