Skip to main content

a hierachical clustering algorithm based on information theory

Project description

Travis Appveyor

Python binding

PyPI

How to build

The binding uses Cython. To package the library, use python setup.py bdist_wheel. Install the package by pip install --user pspartition. Below is the pre-built binary packages:

Platform py3.6 py3.7
Windows T T
MacOS T T
Linux T T

Demo code

import pspartition # classify the three data points shown in the above figure
g = pspartion.PsPartition(3, [(0,1,1),(1,2,1),(0,2,5)]) # index started from zero, similarity is 5 for vertex 0 and 2
g.run() # default to use psp_i algorithm to classify them
print(g.get_critical_values()) # [2,5]
print(g.get_partitions()) # get the result which has at least 2 categories, which is [0,1,0]

ChangeLog

  • Version 0.2: expose PSP (C++) class, which is high customizable in python.
  • Version 0.3: expose PyGraphPDT (C++) class, which has similar API as PyGraph but different inner implementation.
  • Version 0.5: expose run_psp_i for InfoCluster.
  • Version 0.7: change the python binding name from info_cluster to pspartition.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pspartition-0.7.post5-cp37-cp37m-win_amd64.whl (114.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

pspartition-0.7.post5-cp37-cp37m-manylinux2010_x86_64.whl (220.3 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pspartition-0.7.post5-cp37-cp37m-macosx_10_14_x86_64.whl (135.2 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

pspartition-0.7.post5-cp36-cp36m-win_amd64.whl (114.2 kB view details)

Uploaded CPython 3.6m Windows x86-64

pspartition-0.7.post5-cp36-cp36m-manylinux2010_x86_64.whl (220.3 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

pspartition-0.7.post5-cp36-cp36m-macosx_10_13_x86_64.whl (136.6 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

File details

Details for the file pspartition-0.7.post5-py3.7-macosx-10.14-x86_64.egg.

File metadata

  • Download URL: pspartition-0.7.post5-py3.7-macosx-10.14-x86_64.egg
  • Upload date:
  • Size: 135.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for pspartition-0.7.post5-py3.7-macosx-10.14-x86_64.egg
Algorithm Hash digest
SHA256 1de335be86adb3e81ede00f1e48eca8a42166d83325f22aad0c6ba32c6165bd9
MD5 ad7e41f41a251ae213c5a0a907a0fe52
BLAKE2b-256 5038afb4f58f4b0a0c9aaba433c09abb2620d85ae37631c8fecbaec45e1954bb

See more details on using hashes here.

File details

Details for the file pspartition-0.7.post5-py3.6-macosx-10.13-x86_64.egg.

File metadata

  • Download URL: pspartition-0.7.post5-py3.6-macosx-10.13-x86_64.egg
  • Upload date:
  • Size: 137.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for pspartition-0.7.post5-py3.6-macosx-10.13-x86_64.egg
Algorithm Hash digest
SHA256 6ff062d171ea6ba6eea8354d9b731c6ff02cd45c300a1b0483102cbc9f3df73b
MD5 e8514d32ecc2af2113e592bb3546409a
BLAKE2b-256 79574f640ff32f8637e4fc362250179118f1e2b80b586b2a77b60ab4ada03a62

See more details on using hashes here.

File details

Details for the file pspartition-0.7.post5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pspartition-0.7.post5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 114.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for pspartition-0.7.post5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3a4221ca168999b655b584508a4546e06ff2e63bcb409929af8714bde47303ea
MD5 a7648d7ec12d94b78ee639e2d7da870d
BLAKE2b-256 6f1b67baa54509295d4c81582c149dab999546463a372bcf52d1f913c96d3764

See more details on using hashes here.

File details

Details for the file pspartition-0.7.post5-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pspartition-0.7.post5-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 220.3 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for pspartition-0.7.post5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e344b47e1d66e069ec99198ee0a5f21d8fbed561f0922fd921878423e8ad1e04
MD5 a6089626468f1b7323055821d376ab65
BLAKE2b-256 eeba4da9f945287c7b043913aee4eebe79fa2dba915472043306cab671e05205

See more details on using hashes here.

File details

Details for the file pspartition-0.7.post5-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pspartition-0.7.post5-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 135.2 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for pspartition-0.7.post5-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1966f7e1c9faa497c6e74dbc7f63eea2e7a2309f0ae51a1cb2febd7a2923c9f2
MD5 86f6d2ced15f37d8ef6952b144407b59
BLAKE2b-256 8541178037cff887a1d0fc93782278ca4dee896fd16e31e26da564cead99f509

See more details on using hashes here.

File details

Details for the file pspartition-0.7.post5-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pspartition-0.7.post5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 114.2 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for pspartition-0.7.post5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b9b3d8dfe9db66c8f052c49238707db05debdba122e0600ba4c22244b2894e03
MD5 22c9442375609b0efd0aaadde64f09d3
BLAKE2b-256 55f93c68b14b5a7ff3549788d8d20dec0bac2b81f85e2593f2483ead8b75398e

See more details on using hashes here.

File details

Details for the file pspartition-0.7.post5-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pspartition-0.7.post5-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 220.3 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for pspartition-0.7.post5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 402d37b4d8db90167d98564fda87f341c94fdfa978e962e58b550218af8359e4
MD5 6e75d1c8f5951e07c50994d332ec7dfd
BLAKE2b-256 f2de5c6bb76cc16513a50b535ad4d8c53e4237457881913eff5de94a57920ef3

See more details on using hashes here.

File details

Details for the file pspartition-0.7.post5-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pspartition-0.7.post5-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 136.6 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for pspartition-0.7.post5-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 272210497d5a30e6078daf24dacb54b9a4bf93d02286d0fe06e35a9d000a1120
MD5 a65f8dcea03e8a0271e21cb7da61eccb
BLAKE2b-256 954b5f10339dcc156803e5e21732b0dbb6d7814a202393515121a8bb1dd9430f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page