Decision trees in Rust
Project description
Rustrees
Decision trees, random and causal forests in Rust.
Work in progress, stay tuned!
Using Python library
First, create a virtualenv (this just needs to be done once):
python -m venv .env
Then, activate the virtualenv (needs to be done every time):
source .env/bin/activate
Now, install the requirements (just needs to be done once):
pip install -r requirements.txt
Finally, install the Python library at the local virtual environment with the following command (needs to be done every time you change the Rust code):
maturin develop --release
Now, you can import the library rustrees in Python. This can be done also from Jupyter notebooks. To do so, run the following command:
jupyter notebook
And then import the library in the notebook:
from rustrees.rustrees import DecisionTree, RandomForest
import rustrees.tree as rt
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
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 rustrees-0.1.0.tar.gz.
File metadata
- Download URL: rustrees-0.1.0.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d286986234a78eefc1195490dcba29ededddc1ce87a4e595a33023ad5277e4e
|
|
| MD5 |
686f84eca1de5880299633db0ccd6a51
|
|
| BLAKE2b-256 |
cdafafe50b88587a2d3d3f14dc4145b8fec737d76a1cfd677e06fe6fd4b4d1dd
|
File details
Details for the file rustrees-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rustrees-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69858563fdd4d426aa4efef23c15df5d9ddeb2c1205b28f33c5462df64dc77f0
|
|
| MD5 |
cdd1d5ac284510cc54b1cb2b3771b7b8
|
|
| BLAKE2b-256 |
05a483b768820149af4de8b3b7edd53be0db998670b874089fff507d333ced50
|