Exemplo n.º 1
0
 public float Loss(FloatArray targets, FloatArray prediction)
 {
     return(-(targets * prediction.Log()).Sum());
 }