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

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

forestfire_ml-0.5.0-cp313-cp313-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

forestfire_ml-0.5.0-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.0.tar.gz.

File metadata

  • Download URL: forestfire_ml-0.5.0.tar.gz
  • Upload date:
  • Size: 156.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.0.tar.gz
Algorithm Hash digest
SHA256 0aeb91cefcf703457d17d3340fcfc1fa1cbb77dabce8dc2f16a0f78ff55ac395
MD5 aecd4cbffb30edebc5a0c0771d49497c
BLAKE2b-256 24d8a5c130f9926081ec6a54b1f1ca8d8133126f04b0d0738ddb7ba1541d3ddc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2ef19db90b81938d4b0c8a77356e0ab2865824585483d170792f19dfe2a6608c
MD5 b77893ad6e04dcff8ac2f5e2943ffb5e
BLAKE2b-256 4c3c5bc2f67b5358cd6e2d13a2e864ac883d3d3bced3b8d2165707bc4357414c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3a2f76dd5e08995fde8a3fb35051b5b27315ac72653088b27f3fb24f94f3218e
MD5 903eb2ad938112c830a0408c1fffc427
BLAKE2b-256 f70efd8943b532a2b4164aa93065521ebafc8da5a265c8e22d0a5a0b5a212e3a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1c6aa282087cbfd6c76c99b39f1e9583eb9b975ed2a034e537f275c0689adbe
MD5 fdf112053df4a840f3f6837cbd9244a0
BLAKE2b-256 87a3f48574741e6eecd9a5b71b804c3ce76ac485ed4bbae2b76606c386bc9fb8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 481f56c833074ba169b4b56961d268addab0958e2abe82d607fa1a748b54427d
MD5 baad8f4f3251876cf7f08b134efc46a1
BLAKE2b-256 2c168425a6081c4d186bf3ba9787c5d448b5fa27f08e6d555b12b7657c87d226

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8b86a66e5fcd4070cb8ef0a158a70f1c05600d756d42f1db3346b3020a44bf37
MD5 e5a7ac8cc4c42a755ab52365d3d77714
BLAKE2b-256 06cf1b1264a0827f44f9b42eff64a20b549d0b996c3096a4fd93ad2f3770864f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96cd7339b087926254c7290fddc17d8eeaf3ba2de1848698ed12b740918b128a
MD5 fe08ec99f3ed329822d2dc8f6ba9c453
BLAKE2b-256 8b7a1e86c58ef26ef0c14dece848bad7f5d696ffaf687226da3b3c96a5bc5b6d

See more details on using hashes here.

Provenance

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