예제 #1
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="SmoothHingeLoss"/> class.
 /// </summary>
 ///
 /// <param name="expected">The expected outputs (ground truth).</param>
 ///
 public SmoothHingeLoss(bool[] expected)
 {
     hinge = new HingeLoss(expected);
 }
예제 #2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="SmoothHingeLoss"/> class.
 /// </summary>
 ///
 /// <param name="expected">The expected outputs (ground truth).</param>
 ///
 public SmoothHingeLoss(int[] expected)
 {
     hinge = new HingeLoss(expected);
 }
예제 #3
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="SquaredHingeLoss"/> class.
 /// </summary>
 ///
 /// <param name="expected">The expected outputs (ground truth).</param>
 ///
 public SquaredHingeLoss(bool[] expected)
 {
     hinge = new Losses.HingeLoss(expected);
 }
예제 #4
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="SmoothHingeLoss"/> class.
 /// </summary>
 ///
 /// <param name="expected">The expected outputs (ground truth).</param>
 ///
 public SmoothHingeLoss(double[] expected)
 {
     hinge = new HingeLoss(expected);
 }
예제 #5
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="SquaredHingeLoss"/> class.
 /// </summary>
 ///
 /// <param name="expected">The expected outputs (ground truth).</param>
 ///
 public SquaredHingeLoss(double[] expected)
 {
     hinge = new Losses.HingeLoss(expected);
 }