Fix `normalized` helper (spotted by @JadeCopet )
Prediction helper function
Fix gradient computation (still doesn't look perfect)