Пример #1
0
 private static double Score(Observation obs, IClassifier classifier)
 {
     return(classifier.Predict(obs.Pixels) == obs.Label ? 1.0 : 0.0);
 }
Пример #2
0
 private static double Score(Observation obs, IClassifier classifier)
 {
     return classifier.Predict(obs.Pixels) == obs.Label ? 1.0 : 0.0;
 }