Skip to main content

OmniGBDT

Use OmniGBDT to predict several targets with one gradient boosting model in Python. All targets share the same splits in each tree. Each leaf stores a vector of updates, one per target. The C++ implementation builds on GBDT-MO.

Installation · First model · Benchmarks · API reference

Train a joint model with MultiOutputGBDT, or use SingleOutputGBDT for a single target. In 0.8.0, colsample_bytree controls how many input features each tree can use. The default of 1.0 uses them all. For multi-output regression, output_metric sets how target errors count and projection_dim controls how many random combinations of those errors each tree uses to choose splits. For custom objectives, use the Python callbacks. For pipelines and model selection, use the scikit-learn estimator.

Installation

Install the released package with pip.

pip install omnigbdt

If you use uv, add OmniGBDT to your project.

uv add omnigbdt

To use plotting or scikit-learn integration, install the corresponding extra.

pip install "omnigbdt[plot]"
pip install "omnigbdt[sklearn]"

Wheels are available for Linux x86_64, Windows x86_64, and macOS 14 or later on Apple silicon. To install from source, run python -m pip install . from the repository root. Source installation

First model

Train a model on two targets that share a signal. In this example, the model needs to predict both targets accurately and get their average right.

import numpy as np

from omnigbdt import MultiOutputGBDT, Verbosity

rng = np.random.default_rng(0)
X = rng.normal(size=(400, 6))
shared_signal = 1.2 * X[:, 0] - 0.8 * X[:, 1] + 0.5 * X[:, 2] * X[:, 3]
Y = np.column_stack(
    [
        shared_signal + 0.3 * X[:, 4],
        shared_signal - 0.2 * X[:, 5],
    ]
)

X_train, Y_train = X[:240], Y[:240]
X_valid, Y_valid = X[240:320], Y[240:320]
X_test = X[320:]

model = MultiOutputGBDT(
    out_dim=Y.shape[1],
    params={
        "output_metric": np.array([[3, 1], [1, 3]]) / 8,
        "projection_dim": 1,
        "seed": 17,
        "num_threads": 1,
        "verbosity": Verbosity.SILENT,
    },
)
model.set_data((X_train, Y_train), (X_valid, Y_valid))
model.train(200)

preds = model.predict(X_test)
print(preds.shape)  # (80, 2)

The output_metric matrix, np.array([[3, 1], [1, 3]]) / 8, defines the coupled quadratic loss. For each row, half the weight goes to the mean of the two targets’ squared prediction errors. The other half goes to the squared difference between the predicted average and the true average.

If both predictions are high by one, their average is also high by one. The loss is 0.5 × 1 + 0.5 × 1 = 1. If one prediction is high by one and the other is low by one, each still has a squared error of 1, but their average is correct. The loss is then 0.5 × 1 + 0.5 × 0 = 0.5.

With projection_dim=1, each tree uses one fresh random combination of the weighted target errors to choose its splits. Each leaf still predicts both targets. Joly, Wehenkel and Geurts studied projecting residuals when growing trees. Iosipoi and Vakhrushev used projections to score candidate splits in SketchBoost. Random output projections · SketchBoost

Benchmarks

OmniGBDT 0.7.0 and XGBoost 3.4.1 used the same grouped cross-validation folds. Each test fold held out whole portfolios, building geometries or simulation games. Tuning and early stopping used only the training groups. The table reports RMSE in the original target units for both training losses. Lower is better within each dataset.

Dataset Training loss OmniGBDT full OmniGBDT projected XGBoost vector-leaf
Stock MSE 0.11839 0.11835 0.12145
Stock Coupled quadratic 0.11871 0.11851 0.12139
Energy MSE 8.209 8.462 7.681
Energy Coupled quadratic 10.787 10.671 7.667
SCM20D MSE 202.789 198.765 203.086
SCM20D Coupled quadratic 203.130 200.684 203.250

Projection made little difference on Stock. Its largest gain was on SCM20D, where it lowered MSE-trained RMSE by 2% versus full OmniGBDT. On the first SCM20D fold, projection cut fit time from 573 to 203 ms and increased batch prediction time from 1.66 to 1.93 ms. XGBoost had the lowest RMSE on Energy under both losses. Quadratic scores, timings and fold details · Per-repeat scores

Documentation

Project origins

Zhendong Zhang and Cheolkon Jung developed the shared-tree, vector-leaf algorithm underlying OmniGBDT. GBDT-MO paper · GBDT-MO source · Upstream experiments · Differences in this fork

Versioning

This fork follows Semantic Versioning independently from the upstream GBDT-MO repository.

License

OmniGBDT uses the Apache License 2.0. The repository preserves the upstream MIT license for the original GBDT-MO code. See NOTICE for attribution.

Citation

If you use OmniGBDT in your research, cite the original paper by Zhang and Jung.

@article{zhang2020gbdt,
  title={GBDT-MO: Gradient-boosted decision trees for multiple outputs},
  author={Zhang, Zhendong and Jung, Cheolkon},
  journal={IEEE transactions on neural networks and learning systems},
  volume={32},
  number={7},
  pages={3156--3167},
  year={2021},
  doi={10.1109/TNNLS.2020.3009776},
  publisher={IEEE}
}

Metadata

Release files for omnigbdt 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omnigbdt 0.8.0
File Size Uploaded Provenance Actions
omnigbdt-0.8.0.tar.gz 268.3 kB With provenance Details for omnigbdt-0.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for omnigbdt 0.8.0
File Actions
omnigbdt-0.8.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for omnigbdt-0.8.0-cp313-cp313-win_amd64.whl
omnigbdt-0.8.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for omnigbdt-0.8.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
omnigbdt-0.8.0-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details for omnigbdt-0.8.0-cp313-cp313-macosx_14_0_arm64.whl
omnigbdt-0.8.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for omnigbdt-0.8.0-cp312-cp312-win_amd64.whl
omnigbdt-0.8.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for omnigbdt-0.8.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
omnigbdt-0.8.0-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details for omnigbdt-0.8.0-cp312-cp312-macosx_14_0_arm64.whl
omnigbdt-0.8.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for omnigbdt-0.8.0-cp311-cp311-win_amd64.whl
omnigbdt-0.8.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for omnigbdt-0.8.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
omnigbdt-0.8.0-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details for omnigbdt-0.8.0-cp311-cp311-macosx_14_0_arm64.whl
omnigbdt-0.8.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for omnigbdt-0.8.0-cp310-cp310-win_amd64.whl
omnigbdt-0.8.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for omnigbdt-0.8.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
omnigbdt-0.8.0-cp310-cp310-macosx_14_0_arm64.whl CPython 3.10 CPython 3.10 macOS 14.0+ ARM64 Details for omnigbdt-0.8.0-cp310-cp310-macosx_14_0_arm64.whl

Total release size: 3.2 MB

Release files / omnigbdt-0.8.0.tar.gz

Download URL omnigbdt-0.8.0.tar.gz
Size 268.3 kB
Tags Source
SHA-256 checksum
How to use checksums
463fde6c69c8dcfeae8cf8e05d268dd99fe9a9b8eef1dd8c7fead107e535675a
BLAKE2b-256 checksum
How to use checksums
c8c334a5ca25429d7671b53b9d6aecfa786371068350ff75a21cef352d43a950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp313-cp313-win_amd64.whl

Download URL omnigbdt-0.8.0-cp313-cp313-win_amd64.whl
Size 107.9 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
c59b022aa9d56c1725e7dc69102d6f35b0df6b414be75173b420d639020977d7
BLAKE2b-256 checksum
How to use checksums
e9afc8d1c67b1720aaf626f83af6099de41c8dbd7fd589037f6ebfcd5aaf5968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL omnigbdt-0.8.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 232.7 kB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f54a3a501baf0179cd10429f60d7bf307d231d24600288fe2812cfb78ee2fa66
BLAKE2b-256 checksum
How to use checksums
358b7dc03a2c492b3b03b507685f8609fb110d4202e71395bf25f982f1a4f7c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp313-cp313-macosx_14_0_arm64.whl

Download URL omnigbdt-0.8.0-cp313-cp313-macosx_14_0_arm64.whl
Size 384.5 kB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
3b91eb5312a2deb26ad83e06607479bf8ba3cd566dbd97b21a7411294e0a1eb8
BLAKE2b-256 checksum
How to use checksums
6b6f1ffb3b8c02b7ecf58aa7f185944a49fd5afe3d3eab228868f56fd2d3c26d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp312-cp312-win_amd64.whl

Download URL omnigbdt-0.8.0-cp312-cp312-win_amd64.whl
Size 107.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c654005147a722fe0c1a877d647d501fbb10fbc8600baa119bcddb0544d5f863
BLAKE2b-256 checksum
How to use checksums
5b619069064af33cfd3d766f22a0fe814e1265e163529df1edb034a9b57320eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL omnigbdt-0.8.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 232.7 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8de1160c8b227c7c09ed56da80f6564d22bd7b06ab062573630b67faa9a86bd8
BLAKE2b-256 checksum
How to use checksums
f15a57912d23aa5f4cfe95f521e52632647344343d76d536fe3860983c1a5c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp312-cp312-macosx_14_0_arm64.whl

Download URL omnigbdt-0.8.0-cp312-cp312-macosx_14_0_arm64.whl
Size 384.5 kB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
ddacc42c47db12b9b032624cfd5d6e5a17a9793cf05ddc53f5c2a13e89307d0b
BLAKE2b-256 checksum
How to use checksums
b873cd9a53edaad5f0937f57f2c144e9e12c5c704e6677df29388f3a838c8b37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp311-cp311-win_amd64.whl

Download URL omnigbdt-0.8.0-cp311-cp311-win_amd64.whl
Size 107.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
5efaf579830ab919da8d04367384b9b2b79cdba2d174b1af2d5fee1688f897e0
BLAKE2b-256 checksum
How to use checksums
3fcc0dbb67cabbe92f72aa40b5482b831e2399df07de730dc2db59453fd5dfd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL omnigbdt-0.8.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 232.7 kB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ddc3532799c8cabe1a48cb3b57bfaf2d9a7c344b1f11d7c349d83cc0d14cca11
BLAKE2b-256 checksum
How to use checksums
fb47fff74c377128dd9a937c1ea4b91d75fa80ebf7467bf14ec02795a2b49583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp311-cp311-macosx_14_0_arm64.whl

Download URL omnigbdt-0.8.0-cp311-cp311-macosx_14_0_arm64.whl
Size 384.5 kB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
2288233f5b2f1e80f0a8911246a81217c70b1244542486601d83bde8f5862701
BLAKE2b-256 checksum
How to use checksums
bedbbb41c43da29969f23e1a4a2c9cc5543a2fe007122c7c7ad0626c95f97090
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp310-cp310-win_amd64.whl

Download URL omnigbdt-0.8.0-cp310-cp310-win_amd64.whl
Size 107.9 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
80950ff08bbb040274196ddee080fc29e12fe9329b09be58781000e74c054bc2
BLAKE2b-256 checksum
How to use checksums
ecc735856772261fd0db85d2cc4e6a13944e0c79313ebe9a95b427badcf049a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL omnigbdt-0.8.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 232.7 kB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
493c8f65c205cf0c4d355892f255ebae360ffc0eacbd8f7885becf9729b1616b
BLAKE2b-256 checksum
How to use checksums
c692bc4760b786a7d0bee0cabac870b94be1324a7c94f9ba28bb111be1f087ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / omnigbdt-0.8.0-cp310-cp310-macosx_14_0_arm64.whl

Download URL omnigbdt-0.8.0-cp310-cp310-macosx_14_0_arm64.whl
Size 384.5 kB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
6524a277d49d752c1231c800c06013797fecf157c4de7930d869d0f9a502d48d
BLAKE2b-256 checksum
How to use checksums
e66be5811651fa21c53a927bb32c08ad8183cd80aada56923f5c2ba3b0bc1b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for omnigbdt 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for omnigbdt-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page