Skip to main content

RF-PHATE

Project description

RF-PHATE

RF-PHATE provides code used in the paper, "Random Forest-based Diffusion Information Geometry for Supervised Visualization and Data Exploration" The code may be used to generate random forest proximities which may, in turn, be used in multiple dimensionality-reduction algorithms.

Installation

pip install rf_phate

Usage

from rf_phate import RandomForest, Embeddings

# Creates a random forest classifier object
rf = RandomForest.rf_classifier(n_estimators = 500, n_jobs = -2).fit(X, y)

# Generates random forest proximities based on the data matrix X
proximities = rf.get_proximities(X, method = 'oob', matrix_type = 'sparse')

# Generates the RF-PHATE embeddings
rf_phate = get_rf_embeddings(proximities, label_type = 'classification', types = 'phate',
				n_components = 2, random_state = 0, n_jobs = -2)

importance_correlation = get_importance_correlation(X, y, rf_phate)

License

[GNU]

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

rf_phate-0.0.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

rf_phate-0.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file rf_phate-0.0.2.tar.gz.

File metadata

  • Download URL: rf_phate-0.0.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for rf_phate-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9bfb5d4381d341ab85256a6ae76de31edb68be19e3cd8f9df7dff49ec53ca200
MD5 d5b76a0475890b67efc47a51616e297b
BLAKE2b-256 759ec5aeeb2e76ecb4f74a53ebb8726cd0c9b44dbd89a9db8ea2a57afb58a858

See more details on using hashes here.

File details

Details for the file rf_phate-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rf_phate-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for rf_phate-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 353f76b1b6ac6903735f7396a35da7618399043acc25c9765412b4fba53f515e
MD5 37ecf3d6a012d82cdbe850256839bcc0
BLAKE2b-256 b515ab85b80627378b45970d669ae67c45edd85c7522ea64d0077fd9c200336d

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