Tree-based learning in Rust with a Python API.
Project description
forestfire
forestfire is a Python package for tree-based learning backed by a Rust core.
Current capabilities:
- decision trees
- random forests
- gradient boosting
- classification and regression
- sklearn-compatible estimator wrappers
- optimized inference runtimes
- model introspection and export
Example:
import numpy as np
from forestfire import train
X = np.array([[0.0], [0.0], [1.0], [1.0]])
y = np.array([0.0, 0.0, 1.0, 1.0])
model = train(X, y, task="classification", tree_type="cart")
print(model.predict(X))
print(model.predict_proba(X))
Sklearn-style wrappers are also available:
from forestfire.tree import CARTClassifier
from forestfire.forest import CARTRandomForestRegressor
from forestfire.gbm import ObliviousGBMRegressor
Common missing-value markers such as None, np.nan, pandas/NumPy NaN, and
polars nulls are handled automatically during training and prediction.
The source repository, documentation, and issue tracker live at:
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
Built Distributions
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 forestfire_ml-0.2.1.tar.gz.
File metadata
- Download URL: forestfire_ml-0.2.1.tar.gz
- Upload date:
- Size: 130.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbb6f2f47226475fcadeccc725788e97483bacdce2a0f2524c4500322c6e074a
|
|
| MD5 |
536b0f4e08926dc5c61b943a96665218
|
|
| BLAKE2b-256 |
2e3bbceb21a991318b043134f447174ee5bbd60bfcc05d0380180a3e08ba3b93
|
Provenance
The following attestation bundles were made for forestfire_ml-0.2.1.tar.gz:
Publisher:
publish-python.yaml on wsperat/forest-fire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forestfire_ml-0.2.1.tar.gz -
Subject digest:
cbb6f2f47226475fcadeccc725788e97483bacdce2a0f2524c4500322c6e074a - Sigstore transparency entry: 1239247180
- Sigstore integration time:
-
Permalink:
wsperat/forest-fire@cec357c275050a08cfd2d7ca836969bc27ee556b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/wsperat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@cec357c275050a08cfd2d7ca836969bc27ee556b -
Trigger Event:
push
-
Statement type:
File details
Details for the file forestfire_ml-0.2.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: forestfire_ml-0.2.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9380d3ceb4550a4d37e78ecea91bd28982128fae8fafe5679d28831ffd39f2b
|
|
| MD5 |
dc9d299964ad0bd343a48cea6c725cd9
|
|
| BLAKE2b-256 |
545e0ba804558ccc82bdfd8e58b86912d365b8dd46dc0a21aa6df66c73b252d8
|
Provenance
The following attestation bundles were made for forestfire_ml-0.2.1-cp313-cp313-win_amd64.whl:
Publisher:
publish-python.yaml on wsperat/forest-fire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forestfire_ml-0.2.1-cp313-cp313-win_amd64.whl -
Subject digest:
b9380d3ceb4550a4d37e78ecea91bd28982128fae8fafe5679d28831ffd39f2b - Sigstore transparency entry: 1239247186
- Sigstore integration time:
-
Permalink:
wsperat/forest-fire@cec357c275050a08cfd2d7ca836969bc27ee556b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/wsperat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@cec357c275050a08cfd2d7ca836969bc27ee556b -
Trigger Event:
push
-
Statement type:
File details
Details for the file forestfire_ml-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: forestfire_ml-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b53f484a7856a626826405f4ca7d7d7746df20501ba9e72007a6fdfe64fe45d3
|
|
| MD5 |
0c21f589b754c0bf4e8805122a8de9ab
|
|
| BLAKE2b-256 |
f57b16919e99144bb2045d1a57e4812c067153fd185fc59d30bef2fc66fbdfb6
|
Provenance
The following attestation bundles were made for forestfire_ml-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl:
Publisher:
publish-python.yaml on wsperat/forest-fire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forestfire_ml-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl -
Subject digest:
b53f484a7856a626826405f4ca7d7d7746df20501ba9e72007a6fdfe64fe45d3 - Sigstore transparency entry: 1239247188
- Sigstore integration time:
-
Permalink:
wsperat/forest-fire@cec357c275050a08cfd2d7ca836969bc27ee556b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/wsperat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@cec357c275050a08cfd2d7ca836969bc27ee556b -
Trigger Event:
push
-
Statement type:
File details
Details for the file forestfire_ml-0.2.1-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: forestfire_ml-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65021c089e41a6a915161f10549d3f5eefff813daed40f571e7aab46d818dfb9
|
|
| MD5 |
bc87701fdf94358535c8fce85709e44a
|
|
| BLAKE2b-256 |
1f107896643667a2e64397bbd123d3e3b7e1aadd823bed64dcbd6e1aa2916e68
|
Provenance
The following attestation bundles were made for forestfire_ml-0.2.1-cp313-cp313-macosx_11_0_arm64.whl:
Publisher:
publish-python.yaml on wsperat/forest-fire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forestfire_ml-0.2.1-cp313-cp313-macosx_11_0_arm64.whl -
Subject digest:
65021c089e41a6a915161f10549d3f5eefff813daed40f571e7aab46d818dfb9 - Sigstore transparency entry: 1239247189
- Sigstore integration time:
-
Permalink:
wsperat/forest-fire@cec357c275050a08cfd2d7ca836969bc27ee556b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/wsperat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@cec357c275050a08cfd2d7ca836969bc27ee556b -
Trigger Event:
push
-
Statement type:
File details
Details for the file forestfire_ml-0.2.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: forestfire_ml-0.2.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df05453a22f88d3b02f53a30ae61df72e9beaf176767a88e5e2a4d140eb78ee4
|
|
| MD5 |
7a54c299d80d473cc54cbfae0e34d249
|
|
| BLAKE2b-256 |
fceacc1b97f5b07db47b790fce868559d4c4c6bbe8b0df0e94411c7f08597e00
|
Provenance
The following attestation bundles were made for forestfire_ml-0.2.1-cp312-cp312-win_amd64.whl:
Publisher:
publish-python.yaml on wsperat/forest-fire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forestfire_ml-0.2.1-cp312-cp312-win_amd64.whl -
Subject digest:
df05453a22f88d3b02f53a30ae61df72e9beaf176767a88e5e2a4d140eb78ee4 - Sigstore transparency entry: 1239247187
- Sigstore integration time:
-
Permalink:
wsperat/forest-fire@cec357c275050a08cfd2d7ca836969bc27ee556b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/wsperat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@cec357c275050a08cfd2d7ca836969bc27ee556b -
Trigger Event:
push
-
Statement type:
File details
Details for the file forestfire_ml-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: forestfire_ml-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36c13a65d2dac3548310bc9d3bc34beb845a7e1fd5a4183b806c773628444f96
|
|
| MD5 |
cab02688f1805a47b0abf55a432311d9
|
|
| BLAKE2b-256 |
e46c580974d884fb919ef3b91c3f8b8e8702b223db03d0b0ff9fff4b226a46f9
|
Provenance
The following attestation bundles were made for forestfire_ml-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl:
Publisher:
publish-python.yaml on wsperat/forest-fire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forestfire_ml-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
36c13a65d2dac3548310bc9d3bc34beb845a7e1fd5a4183b806c773628444f96 - Sigstore transparency entry: 1239247182
- Sigstore integration time:
-
Permalink:
wsperat/forest-fire@cec357c275050a08cfd2d7ca836969bc27ee556b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/wsperat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@cec357c275050a08cfd2d7ca836969bc27ee556b -
Trigger Event:
push
-
Statement type:
File details
Details for the file forestfire_ml-0.2.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: forestfire_ml-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d417579db4cfebf314a4977b32e752d007d2fe0c6d98766bd21cfa0a7e2e14e
|
|
| MD5 |
d0730cddb4c08fe6956f3b027930d266
|
|
| BLAKE2b-256 |
7d9d9f4912098307b64714f425634e61da5618e6c5b0962c494c377a2d162aab
|
Provenance
The following attestation bundles were made for forestfire_ml-0.2.1-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
publish-python.yaml on wsperat/forest-fire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forestfire_ml-0.2.1-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
2d417579db4cfebf314a4977b32e752d007d2fe0c6d98766bd21cfa0a7e2e14e - Sigstore transparency entry: 1239247184
- Sigstore integration time:
-
Permalink:
wsperat/forest-fire@cec357c275050a08cfd2d7ca836969bc27ee556b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/wsperat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@cec357c275050a08cfd2d7ca836969bc27ee556b -
Trigger Event:
push
-
Statement type: