Skip to main content

Random Forests for the GPU using PyCUDA

Project description

CudaTree is an implementation of Leo Breiman’s Random Forests adapted to run on the GPU. A random forest is an ensemble of randomized decision trees which vote together to predict new labels. CudaTree parallelizes the construction of each individual tree in the ensemble and thus is able to train faster than the latest version of scikits-learn.

Usage

import numpy as np
from cudatree import load_data, RandomForestClassifier
x_train, y_train = load_data("digits")
forest = RandomForestClassifier(n_estimators = 50, max_features = 6)
forest.fit(x_train, y_train)
forest.predict(x_train)

Dependencies

CudaTree is writen for Python 2.7 and depends on:

  • scikit-learn

  • NumPy

  • PyCUDA

  • Parakeet

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

cudatree-0.6.tar.gz (22.8 kB view details)

Uploaded Source

File details

Details for the file cudatree-0.6.tar.gz.

File metadata

  • Download URL: cudatree-0.6.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cudatree-0.6.tar.gz
Algorithm Hash digest
SHA256 9766b94fecef37add90f2fa3c979e1041886cd78850bee2ac14a47b683849106
MD5 195047389ca3771290cabc5a00f943fa
BLAKE2b-256 e0de2ebf91c5953581589b9132f40f306d0c3e877472fa4047c1969565ce1d44

See more details on using hashes here.

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