Skip to content

Repository files navigation

PyMinimax

Gitpod Ready-to-CodeDocumentation StatusbuildcodecovPyPIDownloadsDownloadsLicense

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

Installation

pip install pyminimax

Usage

frompyminimaximportminimaxfromscipy.spatial.distanceimportpdistfromscipy.cluster.hierarchyimportcompletedata= [[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 scipyZ_complete=complete(dist) # complete linkage resultZ_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.

About

Python implementation of minimax-linkage hierarchical clustering

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages