Validation and Leakage

A validation score is only as honest as the order of the steps that produced it. The posts here measure the gap directly: on the OpenML employee salaries data, mean-encoding the categories on all rows before cross-validation reported an MAE of 4,054 USD, and the same model scored 4,636 on a held-out set.

Start with the preprocessing leak if you fit scalers or encoders yourself, then the threshold and baseline posts if your metric looks good but the decisions built on it do not.