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 asPyGraphbut different inner implementation. - Version 0.5: expose
run_psp_iforInfoCluster. - Version 0.7: change the python binding name from
info_clustertopspartition.
Release files for pspartition 0.7.post5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pspartition-0.7.post5-py3.7-macosx-10.14-x86_64.egg | Legacy Egg format | - | - | Details |
| pspartition-0.7.post5-py3.6-macosx-10.13-x86_64.egg | Legacy Egg format | - | - | Details |
| pspartition-0.7.post5-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details |
| pspartition-0.7.post5-cp37-cp37m-manylinux2010_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.12+ x86-64 | Details |
| pspartition-0.7.post5-cp37-cp37m-macosx_10_14_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | macOS 10.14+ x86-64 | Details |
| pspartition-0.7.post5-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| pspartition-0.7.post5-cp36-cp36m-manylinux2010_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.12+ x86-64 | Details |
| pspartition-0.7.post5-cp36-cp36m-macosx_10_13_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | macOS 10.13+ x86-64 | Details |
Total release size: 1.2 MB
Release files / pspartition-0.7.post5-py3.7-macosx-10.14-x86_64.egg
| Download URL | pspartition-0.7.post5-py3.7-macosx-10.14-x86_64.egg |
|---|---|
| Size | 135.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
1de335be86adb3e81ede00f1e48eca8a42166d83325f22aad0c6ba32c6165bd9
|
|
BLAKE2b-256 checksum How to use checksums |
5038afb4f58f4b0a0c9aaba433c09abb2620d85ae37631c8fecbaec45e1954bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pspartition-0.7.post5-py3.6-macosx-10.13-x86_64.egg
| Download URL | pspartition-0.7.post5-py3.6-macosx-10.13-x86_64.egg |
|---|---|
| Size | 137.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
6ff062d171ea6ba6eea8354d9b731c6ff02cd45c300a1b0483102cbc9f3df73b
|
|
BLAKE2b-256 checksum How to use checksums |
79574f640ff32f8637e4fc362250179118f1e2b80b586b2a77b60ab4ada03a62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pspartition-0.7.post5-cp37-cp37m-win_amd64.whl
| Download URL | pspartition-0.7.post5-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 114.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3a4221ca168999b655b584508a4546e06ff2e63bcb409929af8714bde47303ea
|
|
BLAKE2b-256 checksum How to use checksums |
6f1b67baa54509295d4c81582c149dab999546463a372bcf52d1f913c96d3764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pspartition-0.7.post5-cp37-cp37m-manylinux2010_x86_64.whl
| Download URL | pspartition-0.7.post5-cp37-cp37m-manylinux2010_x86_64.whl |
|---|---|
| Size | 220.3 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
e344b47e1d66e069ec99198ee0a5f21d8fbed561f0922fd921878423e8ad1e04
|
|
BLAKE2b-256 checksum How to use checksums |
eeba4da9f945287c7b043913aee4eebe79fa2dba915472043306cab671e05205
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pspartition-0.7.post5-cp37-cp37m-macosx_10_14_x86_64.whl
| Download URL | pspartition-0.7.post5-cp37-cp37m-macosx_10_14_x86_64.whl |
|---|---|
| Size | 135.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
1966f7e1c9faa497c6e74dbc7f63eea2e7a2309f0ae51a1cb2febd7a2923c9f2
|
|
BLAKE2b-256 checksum How to use checksums |
8541178037cff887a1d0fc93782278ca4dee896fd16e31e26da564cead99f509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pspartition-0.7.post5-cp36-cp36m-win_amd64.whl
| Download URL | pspartition-0.7.post5-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 114.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b9b3d8dfe9db66c8f052c49238707db05debdba122e0600ba4c22244b2894e03
|
|
BLAKE2b-256 checksum How to use checksums |
55f93c68b14b5a7ff3549788d8d20dec0bac2b81f85e2593f2483ead8b75398e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pspartition-0.7.post5-cp36-cp36m-manylinux2010_x86_64.whl
| Download URL | pspartition-0.7.post5-cp36-cp36m-manylinux2010_x86_64.whl |
|---|---|
| Size | 220.3 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
402d37b4d8db90167d98564fda87f341c94fdfa978e962e58b550218af8359e4
|
|
BLAKE2b-256 checksum How to use checksums |
f2de5c6bb76cc16513a50b535ad4d8c53e4237457881913eff5de94a57920ef3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pspartition-0.7.post5-cp36-cp36m-macosx_10_13_x86_64.whl
| Download URL | pspartition-0.7.post5-cp36-cp36m-macosx_10_13_x86_64.whl |
|---|---|
| Size | 136.6 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
272210497d5a30e6078daf24dacb54b9a4bf93d02286d0fe06e35a9d000a1120
|
|
BLAKE2b-256 checksum How to use checksums |
954b5f10339dcc156803e5e21732b0dbb6d7814a202393515121a8bb1dd9430f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|