Skip to main content

OmniGBDT

OmniGBDT packages the original GBDT-MO algorithm as a regular Python library. The native C++ training core remains in place, while the Python layer adds wheel-based installation, public custom-objective hooks, optional sklearn-compatible wrappers, and accuracy-oriented regression defaults.

At the mathematical level, GBDT-MO replaces the usual one-tree-per-target strategy with a single tree whose split score is the summed second-order objective gain across all outputs. This allows one tree to reuse shared structure across correlated targets, supports optional sparse leaves that update only the most relevant outputs, and extends histogram-based split search to the multi-output case so the costs of training remain practical at larger output dimensions.

The main public classes are MultiOutputGBDT and SingleOutputGBDT.

Why OmniGBDT

  • Joint multi-output gradient boosting from the original GBDT-MO research codebase
  • Standard pip and uv installation with the native library bundled inside the package
  • Public Python callbacks for custom gradients, Hessians, metrics, and early stopping
  • Fixed-thread deterministic CPU training through the public deterministic parameter
  • Optional sklearn-compatible wrappers for tools such as permutation importance
  • Accuracy-oriented regression defaults in the current fork: num_rounds=200, lr=0.05, max_bins=128, early_stop=15, and automatic mean initialization when base_score is unset

For the original project, benchmark figures, experiment scripts, and upstream research context, please see:

Installation

Install the released package:

pip install omnigbdt

or with uv:

uv add omnigbdt

Optional extras:

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

The current wheel targets are:

  • Linux x86_64
  • Windows x86_64
  • macOS arm64 (Apple Silicon, 14+)

First Model

The example below trains one MultiOutputGBDT model on two correlated targets using only NumPy:

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={
        "loss": b"mse",
        "max_depth": 4,
        "max_bins": 128,
        "lr": 0.05,
        "early_stop": 15,
        "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)

SingleOutputGBDT can be used to train one model per target column as a simple baseline. A real-world financial benchmark based on the UCI Stock Portfolio Performance dataset, together with custom-objective and sklearn examples, is available in the hosted examples page.

Differences From The Original Package

Compared with the upstream GBDT-MO repository, OmniGBDT currently adds:

  • standard Python packaging and bundled native-library loading
  • wheel automation for Linux, macOS, and Windows
  • public Python callback hooks for custom gradients, Hessians, metrics, and early stopping
  • public deterministic parameter for fixed-thread CPU repeatability on the same platform
  • optional sklearn-compatible wrappers
  • automatic regression mean initialization when base_score is omitted
  • scalar or per-output base_score values for MultiOutputGBDT
  • accuracy-oriented wrapper defaults for regression workflows
  • split gain thresholding through gamma that now applies consistently at the root and deeper nodes

Several targeted native-code fixes are also part of the fork, so same-seed runs are not guaranteed to match older buggy runs exactly. A fuller summary is available in the Differences From Upstream page.

Documentation Guide

Project Provenance

This fork builds directly on the original GBDT-MO implementation by Zhendong Zhang and Cheolkon Jung.

OmniGBDT is intended to make the package easier to build, install, and distribute. It is not the canonical source for the paper, benchmark tables, figures, or research documentation.

Versioning

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

License

This fork is distributed under the Apache License 2.0. The main license text for this fork is in LICENSE.

Because this repository incorporates and modifies the original GBDT-MO codebase, the original upstream MIT license notice from Zhendong Zhang is preserved in LICENSE.upstream. Additional attribution and fork-specific notice text is provided in NOTICE.

Citation

If this project is used in research, please credit 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={2020},
  publisher={Ieee}
}

Metadata

Release files for omnigbdt 0.5.1

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.5.1
File Size Uploaded Provenance Actions
omnigbdt-0.5.1.tar.gz 105.8 kB With provenance Details for omnigbdt-0.5.1.tar.gz

Built distributions (wheels)

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

Total release size: 2.8 MB

Release files / omnigbdt-0.5.1.tar.gz

Download URL omnigbdt-0.5.1.tar.gz
Size 105.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1f4d7860e0f04b5ac539cf7a32bf54dcdfbeb351fd04a286b4e08087220bdfa4
BLAKE2b-256 checksum
How to use checksums
686d833fafd97d7c1e1c7b0d3a1d1bb6eab04c1d2bc5143f12f71a09292bfb24
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp313-cp313-win_amd64.whl
Size 90.5 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
583dbcca532b0cb2e53e6f059255bfb6d6c8a4abf9e9a32831c2e71820dd5736
BLAKE2b-256 checksum
How to use checksums
d9282cb04ab8cfd286050892db08de43e8dd5590bcc164a4aa554c60cbffb3fb
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 212.9 kB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
cd1a5a70bf555f1143832afb63cb76a91326a8d86a734482575409dc5b4f7fdc
BLAKE2b-256 checksum
How to use checksums
c55d08129f6b40e5a2799b78589211065f39ff25cf016017749e74dceee0b155
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp313-cp313-macosx_14_0_arm64.whl
Size 368.8 kB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
2713f9ac29bc1696a7ea3bd2919af9ab40b4b2e8ca8f5458767e46dfecb25e39
BLAKE2b-256 checksum
How to use checksums
8048cb00dd4a57c756c3fc246a07c34fac86dfee785baf34d7f3fd7e49018c10
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp312-cp312-win_amd64.whl
Size 90.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
f62b76f6d2ed872bb1ac90bf11adbc34b401652aa9f2ac639bcf402feb177f1f
BLAKE2b-256 checksum
How to use checksums
d1d3677e3593b8c7121b381284108b8d83765828f074bc8940709a8051da4397
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 212.9 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2a01c1d6a19b2c27d419ced463fae12f1326b3b7ecf3a62ae8abe6865f790c8c
BLAKE2b-256 checksum
How to use checksums
fba4c6f8b9cec9800ef74d1f5d62104c45fdf625f26d7d2ef36c354fd74746a2
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp312-cp312-macosx_14_0_arm64.whl
Size 368.8 kB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
475bf1752d23df07d60844631aeaf4f5ec4041dc5656ec853f72f2ffd752e0d3
BLAKE2b-256 checksum
How to use checksums
645331d6b21ffde2c2183c6dfa7106dfd1accd9431ce9fb6b28eb281ae4b4254
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp311-cp311-win_amd64.whl
Size 90.5 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
6dba2909dbb84632fa82b959774e7d86493d52b6a4ea983f48e011cf91db56eb
BLAKE2b-256 checksum
How to use checksums
b4e43170eead5589aa902eca1f8b2f976d1d26cff139363210608268107b3976
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 212.9 kB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2d398e98c7204f4b4bbf8b30eae3a64e5e2f822d06fb9cae73470d093ab86d81
BLAKE2b-256 checksum
How to use checksums
e508d0a93ddef13e8ef669cd4feecea87c006f3160a6b8feb6293339cff74267
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp311-cp311-macosx_14_0_arm64.whl
Size 368.8 kB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
8173b15a630a9a2f955bf134c6c6df3a5578a333e2faef9d61c584831abbacab
BLAKE2b-256 checksum
How to use checksums
8f2943178a5de62280585d509b0c3eabaaa372de1b1602768ae6a608e53fd2fe
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp310-cp310-win_amd64.whl
Size 90.5 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
2ec19819c3265b8a10003ffeadbcf161a66dbc648ca3c42c3ec862616351c82c
BLAKE2b-256 checksum
How to use checksums
44c85dca17212f1f67b4bb9d3589e3c99f8860ef0a3d3886e93bc734a53719c6
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 212.9 kB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
470e4d11d8275b0934711692b4d2909af33207a398587e0572d8337810c8e8cb
BLAKE2b-256 checksum
How to use checksums
18f36dd8cd123e3c9cdfdf85754f712d0c345c5c47185c0dd0648d74e0a74695
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 20, 2026.

Transparency log

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

Download URL omnigbdt-0.5.1-cp310-cp310-macosx_14_0_arm64.whl
Size 368.8 kB
Tags CPython 3.10 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
8defd266e283a9f1b4fef28e04ebe624535b68d88b8c0a19cdccff26dd5f01ca
BLAKE2b-256 checksum
How to use checksums
57130b18925ad561547299e092a650c28fe33bfbd0ddfdfd52c87c50aa93fc18
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 20, 2026.

Transparency log

Security for omnigbdt 0.5.1

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.5.1.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 20, 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