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.

Files for cudatree, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size cudatree-0.6.tar.gz (22.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page