Last Mile Lab
Delivery-risk modeling with a capacity-limited investigation queue.

What needed solving
Help an operations analyst prioritize newly approved orders when only a limited number can be investigated each day.
How it was approached
Built a reproducible DuckDB and pandas pipeline over 99,441 Olist orders, compared logistic regression and CatBoost with chronological evaluation, and shipped an interactive historical replay. At up to 50 investigations per day, the selected model captured 364 late orders versus 222 for the prevalence baseline on the held-out period (1.64x observed lift).
What to know
A historical demonstration using Brazilian marketplace data, not a validated live logistics service. Probability calibration drift is documented; scenario benefits depend on user assumptions and do not establish realized savings.
Stack
Python · DuckDB · pandas · scikit-learn · CatBoost · Streamlit · JavaScript