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.6.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.6-py3-none-any.whl (73.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleppt-1.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 a2d35440b9e463045ab55bf1f056501e74cdd81f084376edfe716df8ddf47b1e
MD5 bbbf51a409f7d9b829c6ab383faafac5
BLAKE2b-256 ac447928423f6529dba4f7b889cb50116180013b597543c0e0d905879ff9a462

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: simpleppt-1.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e9895e524587e55349ddfe51153371bf06e940168d9f6a225ead9ac284f018b2
MD5 403cb79c3fe2662f1c168253678facfd
BLAKE2b-256 f46fa0c8dddfb05a758840960df3cf0e753cf50ebafff39d7e60ab5e353b5416

See more details on using hashes here.

Provenance

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