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 = 'classificaition', types = 'phate',
n_components = 2, random_state = 0, n_jobs = -2)
importance_correlation = get_importance_correlation(X, y, rf_phate)
License
[GNU]
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rf_phate-0.0.1.tar.gz.
File metadata
- Download URL: rf_phate-0.0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cf1ebfd28dba61b63ea8698dcde0702f441efc6575a385fb9cc56d0613a4004
|
|
| MD5 |
00678d2df8f93956651c29a21956b9a9
|
|
| BLAKE2b-256 |
4d7781820b1b97903509a1c384bbd8fc5c9a5f0f408dd3d109a6488ce2dfefc8
|
File details
Details for the file rf_phate-0.0.1-py3-none-any.whl.
File metadata
- Download URL: rf_phate-0.0.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38bde7985960d7a3f2026211dc3871ac0539750ebef501f8fbcfe89b56c71bc8
|
|
| MD5 |
b440be4781b2631c10d66505b99ab658
|
|
| BLAKE2b-256 |
0a99c75a0eafb5ebc4fe9d21c91680b7353e2cdc528771a214cb7b8d590d7df5
|