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.7.0, output_metric sets how target errors count, and projection_dim sets how many random combinations of those errors each tree uses to choose splits. Both are optional. 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 try the 0.7.0 quadratic loss and random projection 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.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnigbdt-0.7.0.tar.gz | 258.6 kB | With provenance | Details for omnigbdt-0.7.0.tar.gz |
Built distributions (wheels)
Total release size: 3.1 MB
Release files / omnigbdt-0.7.0.tar.gz
| Download URL | omnigbdt-0.7.0.tar.gz |
|---|---|
| Size | 258.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7def1c90511abddb211e2600af78c879f1a1ada3d444ce3ec1f39fc860aff9d5
|
|
BLAKE2b-256 checksum How to use checksums |
47cca53661980535d7d14e1da363747ea6e9471357e77044549c832ca77ed280
|
| 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 logRelease files / omnigbdt-0.7.0-cp313-cp313-win_amd64.whl
| Download URL | omnigbdt-0.7.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 106.1 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5a3c180474680873d5081acfbb4c58a8aa245e989ca707cf06e0c87babfec399
|
|
BLAKE2b-256 checksum How to use checksums |
a76715fc84d31a87f9821cf33c467fd2f9fed6edc1682b803e868209b10277b7
|
| 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 logRelease files / omnigbdt-0.7.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnigbdt-0.7.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 227.2 kB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
75f99d2131421fc0fa5c590305f6e41583fa533a8707c3fcf7204071a884c402
|
|
BLAKE2b-256 checksum How to use checksums |
07d618a3a4671f1e43a905e4463ebdc4dc3525a84100988ef9f9bbc2b0cc17e9
|
| 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 logRelease files / omnigbdt-0.7.0-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | omnigbdt-0.7.0-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 383.0 kB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f22df32b407ebd52d1f8f41e7341686991c3de385c4231b50e3887efd401d4c8
|
|
BLAKE2b-256 checksum How to use checksums |
7db528f8144b72f7cc4ce676e1607e545ecb18f8a598a5de23b1e48cab3abd8d
|
| 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 logRelease files / omnigbdt-0.7.0-cp312-cp312-win_amd64.whl
| Download URL | omnigbdt-0.7.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 106.1 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5ecff7a9b18ba43c1afe06742cd98e194ec3b56a34d71ff9ffd1f864047f90d1
|
|
BLAKE2b-256 checksum How to use checksums |
6d15b5de1c495752fb5cabc133b4cd4cac9e6e4d3aa2f84beda6250f95a16c8e
|
| 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 logRelease files / omnigbdt-0.7.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnigbdt-0.7.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 227.2 kB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6ebb76278820937000f78eb58f3417a6f34ba89b5b92d83d730eb8f8023ec55e
|
|
BLAKE2b-256 checksum How to use checksums |
5febe671b0a78fc3c545548946e4a170b4bdfb41ddb69717786684dd77e09809
|
| 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 logRelease files / omnigbdt-0.7.0-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | omnigbdt-0.7.0-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 383.0 kB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
55fc7221b457e4bf170a275c76b57484deb729f8dc190c66a48b7b548d04d1dd
|
|
BLAKE2b-256 checksum How to use checksums |
49b7224993da79871ef6d3e683b0af2656933c3d87d043fd4d9c7adb87ec58de
|
| 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 logRelease files / omnigbdt-0.7.0-cp311-cp311-win_amd64.whl
| Download URL | omnigbdt-0.7.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 106.1 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
eb00b2adc91244457c77d4b0c94a56099943357b939fec785188d363a814fcb4
|
|
BLAKE2b-256 checksum How to use checksums |
a0c2c61ab47bf2e09b39041dc9ea467d5343cadced421611af73c7786d457391
|
| 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 logRelease files / omnigbdt-0.7.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnigbdt-0.7.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 227.2 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a9fa223ec0e15f715b2673755c035ec304669d22fdfb93b0a672128ae5b26458
|
|
BLAKE2b-256 checksum How to use checksums |
a9c494fa2609ccff2de5a6da61cfea8372f0a21908f29ffe49debdcc193f9cb7
|
| 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 logRelease files / omnigbdt-0.7.0-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | omnigbdt-0.7.0-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 383.0 kB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f18342ac3b113fd2384a9d4f6609fb11b531f95151acc050b2fe948e585f7978
|
|
BLAKE2b-256 checksum How to use checksums |
52f790b362ba5faa9f18170bd26fc7e02b2689e3e4c8e36d4a553b2aa5ca6a80
|
| 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 logRelease files / omnigbdt-0.7.0-cp310-cp310-win_amd64.whl
| Download URL | omnigbdt-0.7.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 106.1 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2e73ad13294c9ef4a3c6274ade8a83cc18acea9fb05d9d4d1851c10b267cc9b2
|
|
BLAKE2b-256 checksum How to use checksums |
666d7aea48960e9791e7fc15f56fe1d26be7f2452b0188f87c621a716de0d51a
|
| 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 logRelease files / omnigbdt-0.7.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | omnigbdt-0.7.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 227.2 kB |
| Tags | CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b2388a9f35d657102a6318477a0738270666fc2490059d567dfd8c77779c8621
|
|
BLAKE2b-256 checksum How to use checksums |
b428ac9ca91da0dcf97a6c01133520a60007bf00a179e5e6d4b2bd9431498f34
|
| 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 logRelease files / omnigbdt-0.7.0-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | omnigbdt-0.7.0-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 383.0 kB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
164af281ba2323ddf608a696abc3ea9af27752d709cb21bb61b27cd8fa2bcecd
|
|
BLAKE2b-256 checksum How to use checksums |
91e150862f96dbad3077a5701cb8bd33da67f1f45833d25f1aefc47990f7f788
|
| 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 logSecurity for omnigbdt 0.7.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.
Attestation for omnigbdt-0.7.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 logA 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.