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.4.0.tar.gz (144.2 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.4.0-cp313-cp313-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86-64

forestfire_ml-0.4.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.4.0-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

forestfire_ml-0.4.0-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

forestfire_ml-0.4.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.4.0-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: forestfire_ml-0.4.0.tar.gz
  • Upload date:
  • Size: 144.2 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.4.0.tar.gz
Algorithm Hash digest
SHA256 9c9bb5f09bdd848821c20a3702f9bc11b12fb99a23008fa4c2b619a0f6c93209
MD5 9efe6a626632e5ed0c9742902bec2fad
BLAKE2b-256 a379e0cfd483db2df4907ec89e079ec69d8a2cb7b0ffd531ab9ec57ef399aff2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e9d6ab682dedfc07e7d6dffa1f15daa22f50c0d3f5833af4126a4d39d638796a
MD5 a09da44db851bc01ca2be447dc9c83f7
BLAKE2b-256 40840dc72c5ea73e19b85cc6de899ebcd76fe36e52555100094720dca9d3a2e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c0c398dc8897ffd20f0a7f5ad9702e765c73f1fb508d29acc6a9a3f16689add5
MD5 be4d6cad77cdfdd15a8fea18c941d54d
BLAKE2b-256 570aa0241c3d9ab5d34dfba921857d2e9e0c753d73dd16729129f666c51a2afd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a1476f25c7a4e9a8a1da5515ba34c7b789a02c76ab6652f87cf3edfe0bd2135
MD5 7be856880c1740c6d701fc506d3ae3e2
BLAKE2b-256 27561af3a4f251565c4adae6ad0ab3beeb1589cadd6af6c947925835e560ac87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dead1500dfc000987b93a270f637b5a9dc1a6a7e552548bda0e5c43904e23f98
MD5 7ca8864f3a52d32053dfe3d643c7c624
BLAKE2b-256 8d6e2de61b05302763d712cc118748e6d1f0c1d8b97b2ba8b906b0faa35299f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fbbcbe8496a949a757ee45312833ac54e71ee046a2ac4ad3da92252f48981222
MD5 42005e25f96adf15ffcc20e1d75296fb
BLAKE2b-256 dad420a9f584cc02e21fcbea8024a523276493d6fe770ef4d6ab4f585693cd21

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ecb5aa9ba08476a4b5ddf53f730df0d69813eb57cae31d9074981a260b18a300
MD5 3385ccbb79b6411ed18b7eac3fa09bd7
BLAKE2b-256 85f990f5877f2e91fd76381472f3c608dab0b151462adf692334872bc410dbfb

See more details on using hashes here.

Provenance

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