a hierachical clustering algorithm based on information theory
Project description
Python binding
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 asPyGraph
but different inner implementation. - Version 0.5: expose
run_psp_i
forInfoCluster
. - Version 0.7: change the python binding name from
info_cluster
topspartition
.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pspartition-0.7.post2-py3.7-macosx-10.14-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce7d0435098914525117902b47ae289918cbc544d74980c441541ed87993705 |
|
MD5 | a6252c1c6d6fb3e8fe33737f61692c96 |
|
BLAKE2b-256 | 525f427c080a199fc0b9b78e281b7bb4c973585c2c1f658ff7c89f425dce63b8 |
Close
Hashes for pspartition-0.7.post2-py3.6-macosx-10.13-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c847c258048117c6b49b7f9c287893fca1337371ee0ef440c166ccf40ada586e |
|
MD5 | 6b90e283d1ec6a0eb3969db37da195c9 |
|
BLAKE2b-256 | bb9c5a5ff481ac50cd7a7109fb60c9d8bb85a7c67521da20e80c55909cdfcf9f |
Close
Hashes for pspartition-0.7.post2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddadf952cc05f8e59660e1bbf8c4fb1176fd2d79a5c8d02f0cc3884e33959c33 |
|
MD5 | dc0022d3dcf5ad717a2b087582d29369 |
|
BLAKE2b-256 | 8e9e3825931d276fbdf28e663bfd77558e30910aee50561d290da0f860a42b39 |
Close
Hashes for pspartition-0.7.post2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 886910863837e69f38e2397d107045b8d780fd1605ca7664da8104c1ac4a3694 |
|
MD5 | 3aac627048304084aaf1c377eb50ac91 |
|
BLAKE2b-256 | 68cbeda011e257926e8a1763f71e3cc2828cbbbfa1f1d6bff1acb994cae8a4ab |
Close
Hashes for pspartition-0.7.post2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 773a3041e87088b2a58185f3fd0581bf848b8439d6a7902bf82f41ce4b0666df |
|
MD5 | aa1a21b8418142ec2c37d12525b57b37 |
|
BLAKE2b-256 | 3947b22683d6a4c778419ae6d797502ef7f5cc8118467c27c3e4aba92c85ce4c |
Close
Hashes for pspartition-0.7.post2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18deb586442d870d24a279607061fb2ca74fc09dc07569bc5e52da5878f68df3 |
|
MD5 | c1368b355d9c126c7469bc77414c5a3e |
|
BLAKE2b-256 | 2ca47e6de1320f0bbfddcbfa92fb1e6ee46d3b2c78c6764aa1e47d2bb783dce1 |
Close
Hashes for pspartition-0.7.post2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e244c4202e2f71390ea72ea82f40b440fccf64ee8824ab68c7f4bad7ef7da449 |
|
MD5 | 6f968a037b467747ec8921d163eb9af2 |
|
BLAKE2b-256 | 52a2e530fc6d9623de2ef52f9c59d12a84874438412bd90f55371b12f3786284 |
Close
Hashes for pspartition-0.7.post2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89bb7d744bf9fbac8f157388bd8a3b0636ce8544a84ddf0cfed9e60c2988721e |
|
MD5 | 8fa36365ba7dabe2c623ff2a1f2e158b |
|
BLAKE2b-256 | 37ea053773fc2669da37d26b5d5de87844c163ea153ee330d0f1e9079a519e15 |