Example #1
0
 protected bool Equals(DataPoint other)
 {
     return Pixels.SequenceEqual(other.Pixels) && string.Equals(Label, other.Label);
 }
Example #2
0
 private double Score(DataPoint dataPoint)
 {
     var label = classifier.Predict(dataPoint.Pixels);
     return label == dataPoint.Label ? 1.0 : 0.0;
 }