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.7.1.tar.gz (177.9 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.7.1-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.7.1-cp313-cp313-manylinux_2_34_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

forestfire_ml-0.7.1-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

forestfire_ml-0.7.1-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.7.1-cp312-cp312-manylinux_2_34_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

forestfire_ml-0.7.1-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.7.1.tar.gz.

File metadata

  • Download URL: forestfire_ml-0.7.1.tar.gz
  • Upload date:
  • Size: 177.9 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.7.1.tar.gz
Algorithm Hash digest
SHA256 a3a048cb0c6d48bc65ea2f742a63e2e50a204333202887769cf0026424d47ae3
MD5 0b2dbe7d5e28586e09fb2d475db962ab
BLAKE2b-256 a04530ce4c5775da089f99d447ea04f04c1f9dd6e2f6a3d0ca050e5debacc63b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3cc01653d3e1b753a91bbf72024f9f531382188e4333fcc27cbe93fd9413426a
MD5 e27d6f7e7d38b6359686aaf2f2e6f3b3
BLAKE2b-256 a7eaf986e9da510e9fe8423d4bd16a503de0943e27e62da7ba42da3888c55d79

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d61efa9703c5b29755790173986ce9a276b1b9c04480220277b371d443dd4084
MD5 9feffa1eaeb5aae6174fda20ae71d41b
BLAKE2b-256 081bff0481e516abaf46c95802c786ac05edd2cf98c73854592ced1c36b5b1b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a271e41e57f5d84242f042c70c46bed5eb513ca347114909aa297c336a69ac62
MD5 97417cd96960a987b9a933fbc24a7fe3
BLAKE2b-256 313f78b406489f68ff7297cf22464c894a193137c2a39aef89c776625e97fd8a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a36571c53215f066d8eb1048365394524474085986325eb6e6c181b240367517
MD5 0514558be31e308848bb8f88f8f3fd2a
BLAKE2b-256 efd9e5b47005b92e9615acac5e794baac08016fa442c17c81353e82ca8861de2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 300399118b97fe9d034043b49b61c755b879eeca97aba0d46dd8c0df79a3418a
MD5 20775edec3a2c65fb6709119ed111cf1
BLAKE2b-256 d7d80e25673138f5de993254dd5e9dacc105d13a9ee95fdc4ba495d9559e62c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c65425bb5989749dfaf6072d41d810635788b01c992e765f31bfd2c833a458f7
MD5 c0b44855e94afb616b34012dec149b71
BLAKE2b-256 64ab8198fd38ba359839c2a71766379f8ae72e179b382d657f8e1e5637b5bf48

See more details on using hashes here.

Provenance

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