DelayLens: beating PR-AUC baselines on Olist but losing on cost in hidden test

ZtasnimS75 · reddit · 2026-12-01

A portfolio project, DelayLens, predicts at order time whether an Olist order will arrive late. Trained on 96,470 orders split by time, the gradient boosting model beat a simple-rule baseline on PR-AUC in both validation and hidden periods (0.232→0.102 vs 0.194→0.049). But as the late rate collapsed from 10.11% to 3.61%, the frozen 5:1-cost threshold needed >16.7% precision and lost money: hidden-set cost 4040 vs 3360 for flagging nothing. The author asks how to update thresholds under heavy base-rate drift and whether to calibrate first. Code and dashboard are open.

Related event: DelayLens: Delay Prediction Wins PR-AUC but Loses Money on Hidden Set(2 posts)→

Original post →

More from Research

Research channel →