DirectRS: extract geometry from decision trees
Project description
directrs
DirectRS — extract geometry from decision trees to build piecewise-linear models.
Based on Agus Sudjianto's paper "Linear Models Hiding Inside Your Decision Tree".
Installation
pixi install
Usage
# Classification
pixi run cli train --task classification --input data.csv --target target --output-dir output/
# Regression
pixi run cli train --task regression --input data.csv --target target --output-dir output/
# Predict
pixi run cli predict --model model.pkl --input new_data.csv --output predictions.csv
Run tests
pixi run test
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
directrs-0.1.1.tar.gz
(1.3 MB
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
directrs-0.1.1-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file directrs-0.1.1.tar.gz.
File metadata
- Download URL: directrs-0.1.1.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6d630e432d167e1d27df8734b953a694a427911f1896b39a7ce53cab7adf194
|
|
| MD5 |
02779a2834fa932dffcccc2a00c16845
|
|
| BLAKE2b-256 |
e8ea8e0324b43401ccdb74c24812e4df2e1cacdd9e22634c09247965078db06b
|
File details
Details for the file directrs-0.1.1-py3-none-any.whl.
File metadata
- Download URL: directrs-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34c05ebdb4d511b305bd89b9069796bfa3329036601ab23686d02320634ca835
|
|
| MD5 |
e24ec829ae9d270cf3c11786a05d83b6
|
|
| BLAKE2b-256 |
561267badc2f84019a25cf0b4482016e6b5d24610688d6bc54323c7dd6ee795f
|