TideGBM
Temporal Ordered Gradient Boosting for panel & market data
C++ histogram GBDT · Python sklearn API · TORB time/panel inductive bias
Installation · Quick start · Benchmarks · Documentation · Русский
Overview
TideGBM is a production-oriented gradient boosting library built for time-indexed and cross-sectional panel tables — the kind of data you get in quantitative finance, demand forecasting, and multi-entity analytics.
You bring X and y. TideGBM does not compute indicators or alpha factors. Instead, it treats time order, entity structure, and purged evaluation as first-class concerns:
| Capability | What it means |
|---|---|
| TORB | Temporal ordered residual boosting — causal leaf residuals and structure that respect the arrow of time |
| Purge / embargo | Walk-forward splits with horizon-aware gaps to prevent label leakage |
| Leak lint | Strict mode refuses features that peek into the future |
| Pairwise objective | Within-date LambdaMART-style ranking for cross-sectional IC |
| Histogram engine | Column-major C++17 core with OpenMP; optional CUDA histograms |
This is not “better than neural nets.” The target is a stronger GBDT for tabular time/panel problems under honest, purged evaluation — not SOTA claims or desk alpha.
Quick start
from tidegbm import TideRegressor
model = TideRegressor(
horizon=1,
n_estimators=200,
max_depth=6,
objective="pairwise", # cross-sectional ranking / IC
)
model.fit(X_train, y_train, timestamp="ts", entity="symbol")
pred = model.predict(X_live)
model.save_model("alpha.tgbm")
For level regression (R², absolute fit), use objective="mse" or objective="auto".
Installation
pip install tidegbm
Optional extras: tidegbm[onnx], tidegbm[bench], tidegbm[dev].
From source (requires C++17 + OpenMP):
git clone https://github.com/Vizanix-Team/TideGBM.git
cd TideGBM
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest
| Extra | Purpose |
|---|---|
pip install -e ".[onnx]" |
ONNX export (to_onnx()) |
pip install -e ".[bench]" |
LightGBM + CatBoost benchmarks |
TIDEGBM_CUDA=1 bash scripts/build_gpu_wheel.sh |
GPU histogram wheel (needs nvcc) |
Default wheels are CPU-only; device="gpu" raises unless built with CUDA.
Benchmarks
Public stand: 30 liquid names (Yahoo daily bars), purged expanding walk-forward, labels demeaned within date for IC alignment.
pip install -e ".[bench]"
python benchmarks/markets.py --horizons 1,3,5,10
Snapshot (2026-08-25) — 80 trees, depth 6, lr 0.08, 3 folds:
| Model | h=1 | h=3 | h=5 | h=10 | Mean IC |
|---|---|---|---|---|---|
| TideGBM pairwise | 0.026 | 0.020 | 0.050 | 0.027 | 0.031 |
| TideGBM MSE | 0.026 | 0.016 | 0.026 | 0.039 | 0.027 |
| LightGBM 4.7 | 0.023 | 0.008 | 0.024 | 0.024 | 0.019 |
| CatBoost 1.2 | 0.021 | 0.005 | 0.024 | 0.025 | 0.019 |
Tide pairwise beats LightGBM on all four horizons on this protocol. LightGBM remains ~5–10× faster to fit. Three folds, noisy IC — interpret as a sanity check, not a profit guarantee.
Full protocol: docs/TIDEBENCH.md
Architecture
flowchart LR
subgraph Input
X["Features X"]
y["Target y"]
ts["timestamp"]
ent["entity"]
end
subgraph TideGBM
lint["Leak lint"]
bin["Histogram binner"]
torb["TORB residuals"]
boost["GBDT ensemble"]
end
subgraph Output
pred["predict()"]
model["TGBM / ONNX"]
end
X --> lint --> bin --> torb --> boost --> pred
y --> boost
ts --> torb
ent --> torb
boost --> model
Production defaults
timestamprequired (unlessiid_mode=True);horizonrequired in time modelint_mode="strict"— refuses lookahead featureseval_metric="auto"— cross-sectional IC when time or rank mode is onmax_bin=255; full-train split structure (causal_structure=False)n_time_buckets=0— auto 32/64 buckets from label horizongoss=None— auto GOSS at ≥250k rows- Eval set must be strictly in the future
Documentation
| Document | Contents |
|---|---|
docs/API.md |
Python API reference (estimators, fit params, CV, lint) |
docs/QUICKSTART.md |
Install & first model |
examples/quant_walkthrough.ipynb |
Jupyter walk-through for quants |
docs/DESIGN.md |
Algorithm design & TORB RFC |
docs/TIDEBENCH.md |
Benchmark protocol & quality search |
docs/LEAKAGE.md |
Leakage anti-patterns |
docs/COMPATIBILITY.md |
Semver & model format |
CHANGELOG.md |
Release history |
Project layout
cpp/ C++ core, C API, optional CUDA histograms
src/tidegbm/ Python sklearn wrappers
benchmarks/ markets.py, tidebench.py, bench_scale.py
tests/ pytest suite (39 tests)
.github/workflows/ CI, wheel builds, GPU wheel pipeline
License
Apache-2.0 — see LICENSE.
Русский
TideGBM — библиотека градиентного бустинга на C++ с Python-обёрткой в стиле sklearn. Создана для таблиц с временной структурой и поперечным сечением (много инструментов / сущностей на одну дату): количественные финансы, спрос, мульти-объектная аналитика.
Вы приносите X и y. Библиотека не строит индикаторы — она учитывает порядок времени, структуру панели и честную purged-оценку как часть алгоритма.
Ключевые возможности
| TORB | Временно-упорядоченные остатки — каузальная структура сплитов и листьев |
| Purge / embargo | Walk-forward с зазором по горизонту — защита от утечки меток |
| Leak lint | Строгий режим отклоняет признаки с lookahead |
objective="pairwise" |
Ранжирование внутри даты для cross-sectional IC |
| Движок | Гистограммы column-major, OpenMP; опционально CUDA |
Быстрый старт
from tidegbm import TideRegressor
model = TideRegressor(horizon=1, n_estimators=200, max_depth=6, objective="pairwise")
model.fit(X, y, timestamp="ts", entity="symbol")
pred = model.predict(X_live)
Для уровневой регрессии (R², абсолютная ошибка) — objective="mse".
Установка
pip install tidegbm
Из исходников:
git clone https://github.com/Vizanix-Team/TideGBM.git && cd TideGBM
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]" && pytest
Полная документация API: docs/API.md.
Бенчмарк (30 публичных тикеров, Yahoo)
Purged walk-forward, метки центрированы по дате. Лучший рецепт: depth 6, objective="pairwise".
| Модель | h=1 | h=3 | h=5 | h=10 | Ср. IC |
|---|---|---|---|---|---|
| TideGBM pairwise | 0.026 | 0.020 | 0.050 | 0.027 | 0.031 |
| LightGBM | 0.023 | 0.008 | 0.024 | 0.024 | 0.019 |
Tide pairwise обходит LightGBM на всех четырёх горизонтах в этом протоколе. LightGBM по-прежнему в 5–10 раз быстреe на fit. IC ~0.03 — слабый сигнал; это не гарантия прибыли.
Подробности: docs/TIDEBENCH.md (на английском).
Документация
| Файл | О чём |
|---|---|
docs/DESIGN.md |
Алгоритм и TORB |
docs/LEAKAGE.md |
Анти-паттерны утечек |
CHANGELOG.md |
История версий |
Оговорки
- Не заявляем SOTA и «альфу деска».
- SHAP-значения — Saabas path attributions (аддитивные), не Independent TreeSHAP.
objective="auto"остаётся MSE для совместимости с регрессионными тестами; pairwise — для ранжирования / IC.
Лицензия: Apache-2.0.
Built by Vizanix — algorithmic trading systems, signal pipelines & automated software for crypto markets.
Explore our work at vizanix.tech · Questions & contributions welcome via Issues.
Metadata
Release files for tidegbm 0.5.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 |
|---|---|---|---|---|
| tidegbm-0.5.0.tar.gz | 93.8 kB | Without provenance | Details for tidegbm-0.5.0.tar.gz |
Built distributions (wheels)
Total release size: 14.6 MB
Release files / tidegbm-0.5.0.tar.gz
| Download URL | tidegbm-0.5.0.tar.gz |
|---|---|
| Size | 93.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdc958bd974c05ad5e09f3f9e67e5558dca2f05b873c34a01e6d50f39d9a7cce
|
|
BLAKE2b-256 checksum How to use checksums |
13a0b01ed348f8b24b937e3dda3a86669ebf11f90ef4cc9634d6ae81c2233e13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp312-cp312-win_amd64.whl
| Download URL | tidegbm-0.5.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 555.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f8c251d2f0510d326b7207f53023ff364d47ed37b0d4a526d0400e16d583c201
|
|
BLAKE2b-256 checksum How to use checksums |
cfc3ba44d177bebb4af597fb7fff4398c9980829a7c09289a4f48b79d4480d9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | tidegbm-0.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3174769672ffe473119bde9018d56ef85c0112de3d3e691b97bb292fcb44ac65
|
|
BLAKE2b-256 checksum How to use checksums |
1cf2ce61e1651d54ed0855952b42f2021e5c2dcf7faf68f1173021174d7e1e52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | tidegbm-0.5.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 538.4 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
495af9a1e0adecfa6bd42d0059778f45176b316c56cd6a4ee77272896e1dcf03
|
|
BLAKE2b-256 checksum How to use checksums |
282a781d0c26c70cea7798ec7c417d73cbfd6531b2d6ee12ce66e34160df3a0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp311-cp311-win_amd64.whl
| Download URL | tidegbm-0.5.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 550.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c845985f73be047ab28374a7b1d3031fdd9db49ab6b9ab10ea1d292a96ea8f5f
|
|
BLAKE2b-256 checksum How to use checksums |
ab66352c2965717c29c4c4a1328a34fea2de3f4919e965d25f5530a48dfe7a59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | tidegbm-0.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
255325c35d868f3cb5f628f938f3dda23a845533e5075a4ef3b93dbefcb54f1d
|
|
BLAKE2b-256 checksum How to use checksums |
c23f3ff22c39a392a93014571bd38c6acb2bdb8875dfa42d189a0f5b7e254225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | tidegbm-0.5.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 535.7 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
af5a0d695743f66060ca2b6bde254edaad51dd7c7d995a77548f247b4252ec6a
|
|
BLAKE2b-256 checksum How to use checksums |
228eadcadbdfef350ae385647cac3088bfdefd7b93e4cd9d4b56a88de4f510c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp310-cp310-win_amd64.whl
| Download URL | tidegbm-0.5.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 549.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2d71d533f34853fbcc2f3b9950e8076445fd7f3c340fc7e5d4ff16efeee97670
|
|
BLAKE2b-256 checksum How to use checksums |
9cec4821cf13d1d9a2c7dc8afc29d46ea652d5b1d38320746ddcc50eb33da608
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | tidegbm-0.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e451fd1c13953d5ea35af972decafb119cde8971b85cbb2658b0cd04fe01cf5d
|
|
BLAKE2b-256 checksum How to use checksums |
69a6689f0612ac0e7cb00ceeb8cecf200058622e0ae74c0c267b0df5dfdaebd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tidegbm-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | tidegbm-0.5.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 534.6 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fcc7ed33849ce5e3299a23f258b85160ce5bc16aa561a7f6c9734dbd5aea825d
|
|
BLAKE2b-256 checksum How to use checksums |
4e9b80f1688308819dd7b8205f549cb45c2c6183dd18045ebb580ec8f21445d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for tidegbm 0.5.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.