Skip to main content

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

Project description

chimeraboost

What if CatBoost was slightly worse, 12× faster, and all in Python?

📖 Documentation: bbstats.github.io/chimeraboost

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

# classification
clf = ChimeraBoostClassifier(early_stopping=True, n_ensembles=2)
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, n_ensembles=10)
reg.fit(X, y)

TabArena-Lite Elo vs speed Pareto

  • What?

    • Exceedingly opinionated GBDT library that only depends on common Python libraries
      • Categorical features (catboost-like processing) and sample weights
      • Bagging as a first-class feature (n_ensembles)
      • Automatic early stopping, with optional grouped splitting for the validation set
    • Supports regression, quantile regression, binary and multiclass classification
    • Exact SHAP explanations (model.shap_values(X)) — interventional TreeSHAP computed exactly (not sampled) thanks to the oblivious tree structure, with the linear-leaf slopes included
  • Tuning tips

    • Interaction-heavy regression: raise depth to 8–10 (default 6 is conservative to protect small data).
  • Inspirations / Citations

    • XGBoost — Chen & Guestrin, KDD 2016 — regularized objective, Newton leaf estimation, column subsampling
    • LightGBM — Ke et al., NeurIPS 2017 — histogram-based split finding
    • CatBoost — Prokhorenkova et al., NeurIPS 2018 — ordered boosting, ordered target statistics, oblivious trees
    • Linear-leaf trees — Shi et al., IJCAI 2019 (arXiv:1802.05640) — piece-wise-linear regression trees (linear_leaves)
    • TreeSHAP — Lundberg et al., Nature Machine Intelligence 2020 (orig. SHAP, NeurIPS 2017) — exact additive feature attributions (shap_values)
    • Hierarchical shrinkage — Agarwal et al., ICML 2022 (arXiv:2202.00858) — leaf regularization (hs_lambda)
    • TabArena — Erickson et al., NeurIPS 2025 (arXiv:2506.16791) — tabular benchmark used for evaluation
  • 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.12.0.tar.gz (71.5 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.12.0-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chimeraboost-0.12.0.tar.gz
Algorithm Hash digest
SHA256 28aacb5327c6854081a4915f809a7b078992fb7469cacc72f95b40056e179b03
MD5 a4eb324c8b5f8f23c1187260a85877c6
BLAKE2b-256 08209f7a38afe7b644ec0c403506b586738ff26cfc76c8fbd9221b97fdcd66c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chimeraboost-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 56.0 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.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62ced856ef65de0b4ac5e0c1b21a7bf6c4a375e279c1b337b3ad3460f806f734
MD5 b63ada1a1643416e7cc2b68808ff47b4
BLAKE2b-256 a9d77482e87bc6addbcab266d932f4db15eda9fffa876f21dd9743bee96e1681

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