示例#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);
 }