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.3.0.tar.gz (133.0 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.3.0-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

forestfire_ml-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

forestfire_ml-0.3.0-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

forestfire_ml-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: forestfire_ml-0.3.0.tar.gz
  • Upload date:
  • Size: 133.0 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.3.0.tar.gz
Algorithm Hash digest
SHA256 a73a79c779590e229564fabf0e95bd4b2015389a09577a2d9597b250ff0669fe
MD5 cb2f710a7832693872bd32c989b0e46f
BLAKE2b-256 543dcd04a5c8965a5605cffaa534d91b77e1d2e1138f37dad0a4ee45922f567b

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.3.0.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.3.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 04bb8252c2a03fc7059bb97f0544f3b8277a78d9c2fb9d56cc73c50996dcab02
MD5 99daea5f17b6c5abeb62a98357d0e2ae
BLAKE2b-256 3cc0463eb21acc8baa20f84ed6d86ce39f7f56cb8cb3ca59c101272dd336e84f

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.3.0-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.3.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 db40c0c7c31ed0a3aba3f2ad1d58e5b6132689c6ddb8cbaf4a74c8cd4ef38c0a
MD5 02a8db48c05fc4dd95768f8245c83b7b
BLAKE2b-256 506f436243cb04a42950a99354e5d3e0d1e09376ae77c680b3558030b5e90793

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.3.0-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.3.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8ec18066eb96707149bb067c42d6dc7eb305e1586a17e355ee27bda972fea4f
MD5 d754aee6ac8a8ab29031070c44d66ec4
BLAKE2b-256 4c9325c7127cbef93e8e698f6240b465315b413cef63f405ec7a10a04f77f972

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.3.0-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.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7d746ee3b5125414c13f486aeb959d83104f09c2e1c026f1a3c28fad02a9e27c
MD5 2eea26383e639b4ad395d125e57e78b1
BLAKE2b-256 564a0ccb6e65163cbcbc91c88bd6e36a73c7949914e1873e010c22dc27282da8

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.3.0-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.3.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3973617d2c0bbebb12e91f572050e92d7668c9f683d8349c48615cf3b4c4907e
MD5 377b5b89ee6996ed69d700492d18d3a7
BLAKE2b-256 cb8d2a299b9726956c696044763d2b360167cfa9bf9175516f8ac1e23807bdc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.3.0-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.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f037d0fc146cf38fb30296d75aa65041083aa803095811553c26b78ab3e3146b
MD5 1cbc1eb33c418c85495064648816c299
BLAKE2b-256 d2893023d1be1276d5215687d44a818d6d7a027984f930848e3ff0492d31147d

See more details on using hashes here.

Provenance

The following attestation bundles were made for forestfire_ml-0.3.0-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