Portfolio model beats baselines on PR-AUC but loses on cost as base rate shifts

ZtasnimS75 · reddit · 2026-12-01

A portfolio project, DelayLens, predicts at order time whether an Olist order will arrive late, using 96,470 delivered orders split by time with leakage checks (FastAPI, Docker, Streamlit).

Key results:

With 5:1 costs you need precision above 16.7%, but hidden precision was only 11.4%. The author kept the result untouched, open-sourced the code, and asks how to set or update thresholds when the base rate shifts this much—whether calibration should come first.

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

Original post →

More from Research

Research channel →