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.2.tar.gz (162.7 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.2-cp313-cp313-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.5.2-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.2-cp313-cp313-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.5.2-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.2-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: forestfire_ml-0.5.2.tar.gz
  • Upload date:
  • Size: 162.7 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.2.tar.gz
Algorithm Hash digest
SHA256 a924e9963f4a5135adb51c0d426a924122cca76db0a4646ace40f9657bc9e766
MD5 0128239c34db53e4c404b91f3c724f20
BLAKE2b-256 5717a10aefafbdd2fc6ea82ab8e63a3a7210f4d835ca33df111a03a0294d838d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fbef3fd6667ab4df73d55fb80dcda4dfef4c0cc2443a8119ffea339e6c4f8ad6
MD5 8964fd421652d36330c78549f00c474a
BLAKE2b-256 2c24217b5a157d0d37a2a7bf95a18daf2a49f05bdd1ecda7e5721a63c020ed28

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.2-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9f437865e1f862232cc2b27a7efdec021339bb15f9094e81f1cbaf92a45cdb36
MD5 ab6cd96f5a1fe4b1e286309c06529fdf
BLAKE2b-256 05173124eed9660ab9b60b94bda109e81420efe23b8868adb55cfe2093840e3a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38bb2ee5d71dc1e1a932ec816a6fe74b87710dc61734b90d40a890d8e286ef04
MD5 4e8c2ba3aa50778acafb9c701c204e41
BLAKE2b-256 60fa28b386c2980cb53aba133e193967c3b79241dedea2bb2950356d96c11d5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 74d4d09baeb36463ed558b5f1e0ef94164573517b9076b4cf747b9dda8b730a7
MD5 c1bda7d55fcc59515fb29c7ae9ed5291
BLAKE2b-256 3f586d94725b66fe99de8eb9d873dfb2c9ebc398d2002ebea1154143c2cb3eb1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a1507103b325f6f7716a784a6c53e1b0dacd1b45b0fb0959724252423d5992fc
MD5 d7ac97329002ba7d28a0df30aef5c1eb
BLAKE2b-256 3de96b75d9a222f5e346e5bf14ebdab471ca51e6fc5f586d7b9a2caf2363d23b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f48cfdc2aefec2dd541da507193c5ff58372a904e10d6c841ce31d327997c489
MD5 dd34abce6623a703c38a0b120bc78228
BLAKE2b-256 4169abd9026289bbd1d909f48b8ba26084ee7853874a64e8a6f7f12d2264edbb

See more details on using hashes here.

Provenance

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