OQBoost 2.0
Gradient-boosted 2D-oblique decision trees — histogram-binned, C++ backend.
OQBoost splits on oblique hyperplanes over feature pairs (a·u + b·v < t) instead
of axis-aligned thresholds, so diagonal and interaction boundaries are represented
directly rather than as axis-aligned approximations. Version 2.0 finds split directions
by H-weighted least-squares regression of the gradient — deterministic, one 2×2 solve
per feature pair (no random projections or numerical search).
scikit-learn compatible · compiled C++ (pybind11) + OpenMP · native missing-value handling (NaN routed to a learned bin) · pandas / scipy-sparse inputs.
Install
pip install oqboost
Prebuilt wheels for Windows, macOS (arm64), and Linux. On other platforms pip builds from source — needs a C++17 compiler and (for parallelism) OpenMP.
Quickstart
from oqboost import OQBoostClassifier, OQBoostRegressor
# Binary / multiclass classification (3+ classes use a joint softmax automatically)
clf = OQBoostClassifier(n_estimators=120, learning_rate=0.06, max_depth=4)
clf.fit(X_train, y_train)
proba = clf.predict_proba(X_test) # (n_samples, n_classes), rows sum to 1
pred = clf.predict(X_test)
# Regression
reg = OQBoostRegressor().fit(X_train, y_train)
y_hat = reg.predict(X_test)
Both are drop-in scikit-learn estimators — usable in Pipeline, GridSearchCV,
cross_val_score, and clone; pickle / joblib compatible.
Key parameters
OQBoostClassifier(
n_estimators=120, # boosting rounds
learning_rate=0.06, # shrinkage
max_depth=4, # tree depth (stacked 2D oblique cuts)
reg_lambda=1.0, # L2 regularization
subsample=0.8, # row sampling per tree
colsample=0.8, # feature sampling per node
multiclass="joint", # "joint" softmax (default) | "ovr" one-vs-rest
split_mode="fast", # pair search: "fast" union-KD proxy prune, O(d·n) (default) | "full" exhaustive
)
Common extras: class_weight="balanced" for imbalance, categorical_features=[...]
(cross-fitted target encoding), monotone_constraints=[...], n_iter_no_change=10
for early stopping, warm_start=True to add trees incrementally. The regressor takes
the same core knobs plus loss="squared"|"huber"|"quantile".
Tips: the default split_mode="fast" prunes the O(d²) pair search to O(d·n) by
scanning only the top pairs ranked by a linear + interaction proxy — lossless even on
interaction-heavy data, and the win grows with dimensionality. Use split_mode="full"
for the exhaustive all-pairs search when you want the accuracy ceiling.
Documentation
Full documentation is on GitHub: https://github.com/cree1116/oqboost-2.0
- Quickstart · Benchmarks · Explainability
- API — Classifier · Regressor · Plotting
- Guides — Categorical · Monotonic · Early stopping · Warm start · Multiclass
- Internals — Algorithm · LOB · Roadmap
OQBoost 2.0 is a ground-up rewrite. The original 1.x line (oblique splits via a Deterministic Gradient-Covariance Scan) lives at cree1116/OQBoost.
MIT License.
Metadata
Release files for oqboost 2.4.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 |
|---|---|---|---|---|
| oqboost-2.4.0.tar.gz | 52.9 kB | Without provenance | Details for oqboost-2.4.0.tar.gz |
Built distributions (wheels)
Total release size: 3.8 MB
Release files / oqboost-2.4.0.tar.gz
| Download URL | oqboost-2.4.0.tar.gz |
|---|---|
| Size | 52.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d8ea975268d13b203f7d6e1a786f85797ede33c7703ddcb41fc4e66991d9cf1
|
|
BLAKE2b-256 checksum How to use checksums |
e511ee7e5cfc0d7f9e38bb2457832c0d857bc42e9730a5ccc670f103a250722b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp313-cp313-win_amd64.whl
| Download URL | oqboost-2.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 193.3 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
462e389b638a2545a7dadb8e41806ec9251c1d09742569791bd094cec21ecc6c
|
|
BLAKE2b-256 checksum How to use checksums |
b8c7c6170e10b5c39eaf3dc3e3c7e698550dd801538a9015a3a4aec48df41a84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | oqboost-2.4.0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 321.5 kB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9dd0e56d7e6de69b180b5239cba408b26f3b71222c9f372922244a901afe47d2
|
|
BLAKE2b-256 checksum How to use checksums |
0e397cfc280a8be6921e450484eb2485358a3174af6153e4f769fab0fd1362c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | oqboost-2.4.0-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 438.2 kB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
644329eac16bf20170151374a1e90cdc4346d6cf405c09a56c578a4bb8241aad
|
|
BLAKE2b-256 checksum How to use checksums |
9c2bb99973753febab543f692dba39bbd9017eeadce7d56c5cf7cfdf6653508d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp312-cp312-win_amd64.whl
| Download URL | oqboost-2.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 193.3 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
40105d081995c634c4c80a208bf9943d82098975d3309a9bd1701658c8f06d60
|
|
BLAKE2b-256 checksum How to use checksums |
441c2dc9cca5ad767b818c736b3278fd96af9bfeb44982644385143f17b07a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | oqboost-2.4.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 321.4 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
5a20aaf725c758ebacf80230edaf3275cc45cfd1a49f00140f4277db442895fe
|
|
BLAKE2b-256 checksum How to use checksums |
5b211f80b3b8c42ebb9ee17faa01301865905e8911986bde733fab1243d5c073
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | oqboost-2.4.0-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 438.1 kB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c74f6e27913b8e42bf78d27d9dd88184b95aaf11e02c9226fe228fd125ed1e8b
|
|
BLAKE2b-256 checksum How to use checksums |
a530b51c3e79fe5ff7f49f79c61ad3efce738e8798f298316e596685e23c7bea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp311-cp311-win_amd64.whl
| Download URL | oqboost-2.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 190.1 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4b503a02f00d8874fdada85383cb7ec07dc7b7b5294bd7c330f160b2a34985e0
|
|
BLAKE2b-256 checksum How to use checksums |
340e817fb57cb04efd8c809013eccb1decdc2bc953efd11fe3b3f66b7d8b9e34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | oqboost-2.4.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 320.2 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6cf00e98bfcab7b6f0eefb282c0c7bd7decedb44d551c0d791e86a1a06142e26
|
|
BLAKE2b-256 checksum How to use checksums |
5daf3bd99a5e66ba4ec3e3385a74617e824372e418883403b0163aa826486d67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | oqboost-2.4.0-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 435.9 kB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aca0fb2a83ecb4aeef2a061d22537f38b502138c1ba1ff621caeb5ecb77a1e99
|
|
BLAKE2b-256 checksum How to use checksums |
f23bf649cee67e8302b8fa42d480f6fcfe44a7c3e234b4fbb1fb907533586cd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp310-cp310-win_amd64.whl
| Download URL | oqboost-2.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 189.1 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7e1fec8cd0859110bb48230724aeca28a8d5f1f423c250fefd23cd53f2f8084b
|
|
BLAKE2b-256 checksum How to use checksums |
fb572eede107b1fdf50cbbbc0c4a81b798f321f8a0a0e1fb411d34dabba07324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | oqboost-2.4.0-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 318.6 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
5540826df5e48f4337fa9d51be4a2c8644da392d2e07bb266f40bd2cf554a950
|
|
BLAKE2b-256 checksum How to use checksums |
1b85b762b8b989418c19703ebf87200a674ae1004aebdcc0572e53b28ab428f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / oqboost-2.4.0-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | oqboost-2.4.0-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 434.7 kB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
49a544726ae003233af41cfd414df7afe16cb075eda712a463f878cdb2f9d121
|
|
BLAKE2b-256 checksum How to use checksums |
112bb21e324d05e1d06bd9eb18254f44016fab7cf5861fed3bfd828b5e6b2a76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for oqboost 2.4.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.