public float Loss(FloatArray targets, FloatArray prediction) { return(-(targets * prediction.Log()).Sum()); }