Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forestfire_ml-0.5.1.tar.gz (162.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

forestfire_ml-0.5.1-cp313-cp313-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

forestfire_ml-0.5.1-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

forestfire_ml-0.5.1-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

forestfire_ml-0.5.1-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file forestfire_ml-0.5.1.tar.gz.

File metadata

  • Download URL: forestfire_ml-0.5.1.tar.gz
  • Upload date:
  • Size: 162.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for forestfire_ml-0.5.1.tar.gz
Algorithm Hash digest
SHA256 263eaf5d94de0ec37ede90cfc6e85fae93db961c6bf26ba411a67dc84b9acb17
MD5 7e002fc2b65d4def1eeec4a05cb744ab
BLAKE2b-256 fab073868f818a17576516155537b066ef14125b628b534ebdab237fe388cec0

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.5.1.tar.gz:

Publisher: publish-python.yaml on wsperat/forest-fire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forestfire_ml-0.5.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.5.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7947674169b196a0202d76c9f8e6cd17915454c536ef71ce1e27b4fee3b401b4
MD5 c5477513456670edf75742ec447abf4e
BLAKE2b-256 d5935a3228fa26a48716ba84b3e0505b898b1baaa95f69e95f0337189c5ce85d

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.5.1-cp313-cp313-win_amd64.whl:

Publisher: publish-python.yaml on wsperat/forest-fire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forestfire_ml-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8ae0ddad6e92542d9f7b93099b8c5fb628c9dab248a6bf9de9c149aeb6dc5137
MD5 dc4f73b61e63b6e1fe9e03a6095dace8
BLAKE2b-256 11ed777c90f982c72b51beba8fe455cd042fad843975b6f791077731dd4e03e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl:

Publisher: publish-python.yaml on wsperat/forest-fire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forestfire_ml-0.5.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.5.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a93804a0838236036ac00925d5d62a555e81aa010d893a6e8aaa760026247449
MD5 e64a55fe56db96093d69e59dd8f8cd6c
BLAKE2b-256 11dae54e10aa587ca8541157d47916a8f3d824822a96706bd0c55b85d9c96b95

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.5.1-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish-python.yaml on wsperat/forest-fire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forestfire_ml-0.5.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 af23555e9f0fd3d9446f4ab723a3f62a502e0ed0f8966da38ca153d7a37a583e
MD5 1ba5bdf2da0f6136ec5c7f30cc187ef7
BLAKE2b-256 533f6e1832ffd5cfa6bc2d2579527e6dba0782c11d07517fff923e3d6625bebb

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.5.1-cp312-cp312-win_amd64.whl:

Publisher: publish-python.yaml on wsperat/forest-fire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forestfire_ml-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4096e717c601d6155a013fb2b487d96655c22e02b4560833388938099f8dc21f
MD5 aa103b7257d76cbffb2ea9612f03485c
BLAKE2b-256 e9e0d7b8e349581275b7dbf4abb0afe9931b15a0d3a84ebb4d54f44ef5e64770

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: publish-python.yaml on wsperat/forest-fire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forestfire_ml-0.5.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.5.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1ddf0361a98a194ea3c5538d31b5b03e9f857454ff486f2bead999ca5921009
MD5 66ef66f2fc4d3acb083f8541d28f58ba
BLAKE2b-256 48abb9cda5533887aea2c1c1aa7a3bc18b1b28d31d87bc14bf4a05805eb7e5ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.5.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish-python.yaml on wsperat/forest-fire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page