Skip to main content

CatBoost-inspired gradient boosting in pure Python with a numba backend

Project description

chimeraboost

What if CatBoost, but 30x faster, slightly worse, and all in Python?

⚠️ Project is in active development: breaking changes should be expected.

chimeraboost logo
  • Installation
pip install chimeraboost
  • Sample code:
from chimeraboost import ChimeraBoostClassifier, ChimeraBoostRegressor

# classification
clf = ChimeraBoostClassifier(early_stopping=True)
clf.fit(X, y, cat_features=[0, 1], sample_weight=w)
proba = clf.predict_proba(X_test)

# regression (RMSE, MAE, or Quantile)
reg = ChimeraBoostRegressor(loss="Quantile", alpha=0.9, early_stopping=True)
reg.fit(X, y)

Benchmark summary

Slowdown distribution

  • What?

    • GBDT library that only depends on common Python libraries
    • Supports regression, quantile regression, binary and multiclass classification.
    • Categorical features, sample weights, and automatic early stopping
    • Within ~3% F1 / ~5% RMSE of CatBoost on a 34-dataset OpenML benchmark, at ~30× the speed
  • Why?

    • I want to be able to modify my GBDT library at will
    • I know Python and I don't know C

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

chimeraboost-0.7.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chimeraboost-0.7.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file chimeraboost-0.7.1.tar.gz.

File metadata

  • Download URL: chimeraboost-0.7.1.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for chimeraboost-0.7.1.tar.gz
Algorithm Hash digest
SHA256 5cb87829de60814b3e2ce331bdf54ee366fa0134dd4c5c4986a1fd3c42ce73bf
MD5 a636f20a2006e4e7a8b8f2b9002fc1b2
BLAKE2b-256 65fbdfa68fa9dd415f0684fb165b39628e7a5ad63c36907430758405a925468a

See more details on using hashes here.

File details

Details for the file chimeraboost-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: chimeraboost-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for chimeraboost-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f23b2d1e43f75be0695daa9bb4cec70366bf2e7dcc8da4ec8075e8abcdacde94
MD5 05621c16308d73df2f174dd6b4371d6a
BLAKE2b-256 760144abe85dcabad064d86dbd69a462dccc79efa081a58a3674b41ad318ea2f

See more details on using hashes here.

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