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

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.5.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.5.3-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.3-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.3.tar.gz.

File metadata

  • Download URL: forestfire_ml-0.5.3.tar.gz
  • Upload date:
  • Size: 166.5 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.3.tar.gz
Algorithm Hash digest
SHA256 0f271b8fd9068ea1470ee67d5268728e69ebef589e542ab5067052103cd27ff1
MD5 01986186922a2362d22cd285ac0c2c46
BLAKE2b-256 bc1c96c864dc44e96ac92883c7c4c8518098bece60ef528abbd104eba9d0425f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c9068f03a4fc1635dc5eaac7cfd3e3243616943d5a546ba5cd4906c4f177fd87
MD5 b0c1c977dfee658aa27a83a4ed660129
BLAKE2b-256 102170fc0a61e15c69a844cb19899fbd8b3d89bb77262ecd1ed2b7e890a5c2d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.3-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8740058ed2e438a49096ae10150c17ab642d93387656672d3faf9866bfcb97a3
MD5 924a263523d853b05a9ac25e981056e5
BLAKE2b-256 4077c8615bde1a21f508fecb01acdc474c8888b260c0767af99749c782cf9299

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 838934ba585980894a4c5eee55bc15ab2934b8ca70058baca1a1d062c88c03e4
MD5 ec950e9239ded02dff9210ac2ae1d3d6
BLAKE2b-256 ab6f1c333f30e3200b1670828d0526d23bfc5c5a17922f9d3fd48bc198a9339a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 86dcf2fe99b9f4f4eb85a46826c6a91ace81578a9974ac12ba5f982eecc4aaa6
MD5 be6dee061f9c1f2ed98f89a133a155bb
BLAKE2b-256 c42dcafbbcfafb8fc5ecebae5592a23324169efaad163fe1b8fec897b047ea2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 267d554fce3b8fa907529b7ebd05d6b9082f0e46daf3c84a2cf3963a7cedc55f
MD5 328d657a7026459203d31658bb7b68eb
BLAKE2b-256 e66ad0aae6c3f80a709251e819841adf02676a3155cbce84e23a9ffe9bdd92ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 578c60a4d2a8ee4a1d1ae51cc1c24e804a938e2ffbf18292ae07cbe1904ed784
MD5 290c3d56631db335d7e29b0323817906
BLAKE2b-256 4211d5dacbd18a329286dd9ff925f88521f7418232529d2639e21a9e94e60396

See more details on using hashes here.

Provenance

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