What a I learnt about outcome definitions, patient-grouped splits and honest metrics while predicting hospital readmission with scikit-learn. The problem Hospital readmission is expensive for health systems and harmful for patients. For people with diabetes, a return to hospital often signals gaps in glycaemic control, medication reconciliation or follow-up. If a hospital could identify, before discharge, which patients are most likely to return, it could target scarce follow...