PyMinimax
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyminimax-0.1.2.tar.gz | 7.3 kB | Without provenance | Details for pyminimax-0.1.2.tar.gz |
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
|
Security for pyminimax 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.