Review this Python target-encoding helper.
CV scores are excellent but live performance is poor. Diagnose it.