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.0.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.0-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

File metadata

  • Download URL: forestfire_ml-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 80005ff062be611a2ea79ea1b1e9a4688ae2bec7a66b15c564eafd82ad4f570c
MD5 44e85c5e2fe6d410675c8896586826f1
BLAKE2b-256 7d900730ec426e8428a240e1b72ebf1ad1ec62a4196dbded2ef50d3e5fdb67b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4ccaad2ec36cc7380a29fbc4041290eeef2771b89dceeca2b8734785c427ccb6
MD5 6694b3f288fce6d7376e1b02141fdd02
BLAKE2b-256 79c57d8faad353869744b06aaf4b72db1e53a4e5f596891c03c3b359db4f21d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.2.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 caaba48a6b206d91f8fbbb0e1b13b5726ea319f30878babc2b81ef03b4a762cd
MD5 76536dc093ed1e2c4ff3139052890619
BLAKE2b-256 ed61f4298818b8b52bf6574fd52b6d86309bf4b42b88d7f0e9200d3f9267ed3b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a7e0278bd29e8f1473b02dbd2cca6e02e7719308bcee8c08157c932cb33eca7
MD5 ca863a4a9cc011169b6e680ce33c0b7d
BLAKE2b-256 ee939e372d99f69ae9244f388d826ce77ed28ed464d2358c97c4b0a6600fbb18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e4dc75b57ff347b38b15632d6cb0dbfa693e4d7d36134de9b62058ab5c7d005a
MD5 53159425f598dd0a81f6c221de1c0b39
BLAKE2b-256 f0752fd143e8f5b7921e1b89d28ce29e495f288c6ff8d3064b84a1e748e7a185

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7a086aac7325bc6c1fa6ecccfe008ec3c86a8a3c8c75bdd5553b7a5a65c6b2af
MD5 34c7adf43b1c770a186c35452eb1d834
BLAKE2b-256 c8d1106c0ca4dfdb70160b47998be1583af57a6381262e8d3706681638b7d44b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for forestfire_ml-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cce49248dd97139c802b7bdc51a8dfb460c1d5b53a620f19a1fd8b9f43dd92f
MD5 e7f74e724751a81fdaf844761cf0d503
BLAKE2b-256 57bd5d1775031c05b04b5415a448610512ab66697e3ae88f2874d19bbf8ba602

See more details on using hashes here.

Provenance

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