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.0.tar.gz (31.6 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.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chimeraboost-0.7.0.tar.gz
  • Upload date:
  • Size: 31.6 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.0.tar.gz
Algorithm Hash digest
SHA256 f14b575b01a69c9a666c4c623c301dc036b6cc30ba5361641a839f1be9b959f3
MD5 8a8f3708ba7445e61702c9d6f17264b3
BLAKE2b-256 9dd50177d9e9f94fdd01fbbd9c8f12e42e92b1dcca355087ddb0a8ed68261b28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chimeraboost-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 29.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a81ca54ce1d1a888ddf8ae3f1cce26a88aa34a5b886681a3e97285e94e57179
MD5 240ee105492bd7be39c2297eaf9f756e
BLAKE2b-256 7b48dacd79ae67d74321891f0e2588d3bfebb3290ee64c2e214fc3ac9602ba2d

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