VS.05 · Tabular ML · Ranking · Sep–Nov 2025 · Rebuilt Oct 2026
CTR Predictor
vs. My Own Leak
Audited and discarded my own leaked v1 scores, rebuilt a 123-feature batch-independent pipeline with exact cross-split dedup (599,971 / 149,994 / 249,987), and evaluated LightGBM-63 once at 0.7605 ROC AUC.
- Stack
- Python · LightGBM · XGBoost · Optuna · scikit-learn · Flask
- Throughput
- 184 ms warm 1-row local latency · 187 ms batch-100
- Tolerance
- ROC AUC 0.7605 (+0.0019 / −0.0018, 95% CI) · Log loss 0.4857 · Brier 0.1581
- Known Limits
- Bounded Criteo sample (599,971 / 149,994 / 249,987); row index is not a verified timestamp; feature hashing permits collisions; row-bootstrap omits advertiser/time clustering.
Leak-free held-out ROC AUC
0.7605
Validation-selected LightGBM-63 (threshold 0.28) on rebuilt batch-independent 123-feature pipeline after discarding leaked v1 scores
n: 249,987 protected held-out test rows (evaluated once; 95% row-bootstrap CI 0.7587–0.7624, +0.0019 / −0.0018)
Held-out test log loss
0.4857
Single frozen test evaluation of LightGBM-63 alongside saved naive and logistic baselines with checksum manifests
n: 249,987 protected held-out test rows (Average Precision 0.5516)
Warm 1-row local latency
184 ms
End-to-end local scoring including 123-feature batch-independent preprocessing
n: 30 warmed repetitions (183.78 ms median 1-row; 186.94 ms batch-100)

I found the leak in my own model. I threw the score away. Historical v1 notebooks target-encoded across splits and leaned on batch-dependent serving stats—inflating offline numbers that could never survive production. I rebuilt all 123 features strictly on train, deduplicated across every split, and ran one protected evaluation on 249,987 held-out rows.
Panel 01 · The Dread (What Silently Breaks)
Original v1 training notebooks applied pre-split target encoding and relied on batch-dependent serving statistics, leaking target labels across train/test boundaries and producing invalid offline scores.
0.7605
Leak-free held-out ROC AUC (+0.0019 / −0.0018, 95% row-bootstrap CI 0.7587–0.7624), 0.4857 log loss, 0.1581 Brier, and 184 ms warm 1-row local latency across 249,987 protected test rows.
Scope: Bounded Criteo sample study; row order is not a verified timestamp, hashing permits collisions, and row-bootstrap ignores advertiser/time clustering.
Panel 02 · Engineering Contribution
Audited and permanently retired the invalid v1 numbers, engineered a single deterministic 123-feature batch-independent pipeline (training-only medians/frequencies, deterministic BLAKE2b hashing, 5-fold out-of-fold target encoding excluding each row's fold, exact raw-feature cross-split deduplication), selected LightGBM-63 (threshold 0.28) on validation, and ran one protected test evaluation with saved predictions and checksum manifests.
Panel 03 · System Architecture
- 01Schema contract validates 13 numerical and 26 categorical raw Criteo fields before feature synthesis.
- 02Training-only medians, category frequencies, deterministic BLAKE2b hash buckets, and 5-fold OOF target encoding produce 123 batch-independent features fitted exclusively on train [0, 600k).
- 03Label-free exact raw-feature deduplication within and across splits yields 599,971 train / 149,994 validation / 249,987 held-out test rows beyond the historical 10M prefix.
- 04Validation-selected LightGBM-63 (threshold 0.28) evaluated once on 249,987 held-out rows without test-driven retuning; raw predictions, naive/logistic baselines, and checksum manifests saved in evidence/benchmark.json.
v1 pipeline — pre-split leakage · discarded
- − Target encoding fitted before train/test split (leaked labels)
- − Batch-dependent serving normalization (drifts by request size)
- − Conflicting README vs. dashboard split labels — permanently retired
123 fixed features from 39 raw Criteo fields
- + Training-only medians & category frequencies on [0, 600k)
- + Deterministic BLAKE2b hash buckets + 5-fold OOF target encoding
- + Exact raw-feature deduplication within & across splits
- + Single protected evaluation of LightGBM-63 (threshold 0.28)
EXACT CROSS-SPLIT DEDUPLICATED WINDOWS · TOTAL 999,952 RETAINED ROWS
599,971 / 149,994 / 249,987PROTECTED HELD-OUT TOLERANCE SPEC · LIGHTGBM-63 · n = 249,987
- LOG LOSS
- 0.4857
- BRIER SCORE
- 0.1581
- AVG PRECISION
- 0.5516
- WARM 1-ROW LATENCY
- 184 ms
Next Chapter · VS.01
F1InsightAI
vs. The Confident Wrong Answer
