Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZeroOneLoss"/> class.
 /// </summary>
 /// <param name="expected">The expected outputs (ground truth).</param>
 public ZeroOneLoss(int[] expected)
     : base(expected)
 {
     if (Expected.Min() < 0)
     {
         throw new Exception("Expected values should be greater than or equal to zero.");
     }
 }