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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

File metadata

  • Download URL: forestfire_ml-0.7.0.tar.gz
  • Upload date:
  • Size: 177.0 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.0.tar.gz
Algorithm Hash digest
SHA256 f65d3325c68f61a4b2cadff3c6ae1360144ebd50bd02471fc3fc5ab5092d7314
MD5 196c1b93ed262987e117ea418e9da710
BLAKE2b-256 60ff7edee8c3ca1b4e07aeb64448c0065b9f5e305e48913f333416200f8f3076

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bd0d13b33bd1591d23072bb6e1dca870e309bcd67ff16cdd4485ec5871ac9ea5
MD5 2e1c779383eb9a77e391661548fae970
BLAKE2b-256 9e3a6c87099d0744c83635cf362eb404c9aaee0053b7ae12ee7c6e92d3cc9d8d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7d2d422e868495663623ea2f7b3036aaf399f651d329ebd14504cfc16ef7e779
MD5 9942d177fe128685827743963e2a6dbc
BLAKE2b-256 41695294413d1564da184ca1a019774666813fe8038040ef22b93185bcdf5022

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffcb2510d44838f8b25963c00ac7d483e284a78ba3195c551658e3105bd912f3
MD5 4bf6db36edfe7b80646dec018b34cdcc
BLAKE2b-256 a711de96701fc370be581081e419dc97d18047299cabdfc3c9710fb0fec634a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bcf43318df291d24a36c34e17d4d059b26bf7f9efeb4d9502ee799c779cef0f1
MD5 66c4cdcd93213449366de8be0ef8529f
BLAKE2b-256 c0d169e4ba8b0ef1fe91f7ad240da35e833a20a116d78ac096079d3eca8071af

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6a8c7df2962e5295b18edf8a43daa9874cb9979886d1954c8713319740a6a137
MD5 363b3178a120fada33a3311f7e1d0b88
BLAKE2b-256 5703ae0d182781f5e5ac0621ff4559bd5a8c3f8269ddebb0049360cef9afdaeb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.7.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e77079091985b6ad38d98ad6ae20bf935d4046733134618117c996f7e957f54e
MD5 50a1ec6ed73c1680c67fadebc8f36b05
BLAKE2b-256 8d3b5f455a5ffebf02d710471ec14a6a607f3765704d70f39856f4d1f6e960df

See more details on using hashes here.

Provenance

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