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.5.tar.gz (72.6 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.5-py3-none-any.whl (72.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleppt-1.1.5.tar.gz
  • Upload date:
  • Size: 72.6 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.5.tar.gz
Algorithm Hash digest
SHA256 2f4085009a274adb9cb3c523eb3180cf9e8e269edfb2e25bb6ad40eddc67c49c
MD5 d0b2cdee12e319803aa451d4202ed13e
BLAKE2b-256 cfaf5d9092245ccebd13cdafea58ef3b58faf65742fd1810b69ee2e21cf36b12

See more details on using hashes here.

Provenance

The following attestation bundles were made for simpleppt-1.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: simpleppt-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 72.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2b79d4c9b3468ec256ec0fa5babc8c4f42a64a5ed50ba3376fad370f7ce61258
MD5 9e5a0e92aac5340d995877491791205a
BLAKE2b-256 ae7a60cbe27e346be70acd3f1554f3cdd0b5858f64c588239697af0311faea39

See more details on using hashes here.

Provenance

The following attestation bundles were made for simpleppt-1.1.5-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