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

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

forestfire_ml-0.2.1-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.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

Hashes for forestfire_ml-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cbb6f2f47226475fcadeccc725788e97483bacdce2a0f2524c4500322c6e074a
MD5 536b0f4e08926dc5c61b943a96665218
BLAKE2b-256 2e3bbceb21a991318b043134f447174ee5bbd60bfcc05d0380180a3e08ba3b93

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b9380d3ceb4550a4d37e78ecea91bd28982128fae8fafe5679d28831ffd39f2b
MD5 dc9d299964ad0bd343a48cea6c725cd9
BLAKE2b-256 545e0ba804558ccc82bdfd8e58b86912d365b8dd46dc0a21aa6df66c73b252d8

See more details on using hashes here.

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

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.2.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b53f484a7856a626826405f4ca7d7d7746df20501ba9e72007a6fdfe64fe45d3
MD5 0c21f589b754c0bf4e8805122a8de9ab
BLAKE2b-256 f57b16919e99144bb2045d1a57e4812c067153fd185fc59d30bef2fc66fbdfb6

See more details on using hashes here.

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

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.2.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65021c089e41a6a915161f10549d3f5eefff813daed40f571e7aab46d818dfb9
MD5 bc87701fdf94358535c8fce85709e44a
BLAKE2b-256 1f107896643667a2e64397bbd123d3e3b7e1aadd823bed64dcbd6e1aa2916e68

See more details on using hashes here.

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

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.2.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 df05453a22f88d3b02f53a30ae61df72e9beaf176767a88e5e2a4d140eb78ee4
MD5 7a54c299d80d473cc54cbfae0e34d249
BLAKE2b-256 fceacc1b97f5b07db47b790fce868559d4c4c6bbe8b0df0e94411c7f08597e00

See more details on using hashes here.

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

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.2.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 36c13a65d2dac3548310bc9d3bc34beb845a7e1fd5a4183b806c773628444f96
MD5 cab02688f1805a47b0abf55a432311d9
BLAKE2b-256 e46c580974d884fb919ef3b91c3f8b8e8702b223db03d0b0ff9fff4b226a46f9

See more details on using hashes here.

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

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.2.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forestfire_ml-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d417579db4cfebf314a4977b32e752d007d2fe0c6d98766bd21cfa0a7e2e14e
MD5 d0730cddb4c08fe6956f3b027930d266
BLAKE2b-256 7d9d9f4912098307b64714f425634e61da5618e6c5b0962c494c377a2d162aab

See more details on using hashes here.

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

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