Skip to main content

Python implementation of SimplePPT algorithm, with GPU acceleration

Project description

PyPI Documentation Status Build & Test codecov GitHub license Code style: black

SimplePPT

Python implementation of SimplePPT algorithm, with GPU acceleration.

Please cite the following paper if you use it:

Mao et al. (2015), SimplePPT: A simple principal tree algorithm, SIAM International Conference on Data Mining.

Installation

pip install -U simpleppt

Usage

from sklearn.datasets import make_classification
import simpleppt

X1, Y1 = make_classification(n_features=2, n_redundant=0, n_informative=2,
                             n_clusters_per_class=1, n_classes=3)

ppt=simpleppt.ppt(X1,Nodes=30,seed=1,progress=False,lam=10)
simpleppt.project_ppt(ppt,X1, c=Y1)

result

GPU dependencies (optional)

If you have a nvidia GPU, simpleppt can leverage CUDA computations for speedup in tree inference. The latest version of rapids framework is required (at least 0.17) it is recommanded to create a new conda environment:

conda create -n SimplePPT-gpu -c rapidsai -c nvidia -c conda-forge -c defaults \
    rapids=0.19 python=3.8 cudatoolkit=11.0 -y
conda activate SimplePPT-gpu
pip install simpleppt

Project details


Download files

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

Source Distribution

simpleppt-1.1.7.tar.gz (70.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simpleppt-1.1.7-py3-none-any.whl (73.0 kB view details)

Uploaded Python 3

File details

Details for the file simpleppt-1.1.7.tar.gz.

File metadata

  • Download URL: simpleppt-1.1.7.tar.gz
  • Upload date:
  • Size: 70.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simpleppt-1.1.7.tar.gz
Algorithm Hash digest
SHA256 0413e670d7dab53a308a6663bc38d4bbd233230b11953a7677adb03c7fae4868
MD5 fe793e033b0690b4983a2a11c0738432
BLAKE2b-256 1014427706d062da581e0940fcc4ec298f96c6c16b7c86b11dec732285b8181b

See more details on using hashes here.

Provenance

The following attestation bundles were made for simpleppt-1.1.7.tar.gz:

Publisher: test.yml on LouisFaure/simpleppt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simpleppt-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: simpleppt-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 73.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simpleppt-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3d3fae80ecb970e546101f59d1c5ad6eda7e688be02555f82ccdc8c0577c8827
MD5 8460e0bfc9876fd273ccc9f4b90d69fe
BLAKE2b-256 cb0fedb61bc3b8c251bb366b092e003644818e7b285c19883d521fbb4f7b20b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for simpleppt-1.1.7-py3-none-any.whl:

Publisher: test.yml on LouisFaure/simpleppt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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