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
rustrees-0.1.0.tar.gz
(3.3 MB
view hashes)
Built Distribution
Close
Hashes for rustrees-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69858563fdd4d426aa4efef23c15df5d9ddeb2c1205b28f33c5462df64dc77f0 |
|
MD5 | cdd1d5ac284510cc54b1cb2b3771b7b8 |
|
BLAKE2b-256 | 05a483b768820149af4de8b3b7edd53be0db998670b874089fff507d333ced50 |