示例#1
0
 private static double Score(Observation obs, IClassifier classifier)
 {
     if (classifier.Predict(obs.Pixels) == obs.Label)
         return 1.0;
     else
         return 0.0;
 }
 public static double Score(Observation observation, IClassifier classifier)
 {
     return classifier.Predict(observation.Pixels) == observation.Label ? 1.0 : 0.0;
 }