예제 #1
0
 public double Validate(Dataset dataset, IMetric metric)
 {
     return(dataset.Average(D => metric.Evaluate(D.Targets, Predict(D.Inputs))));
 }
예제 #2
0
 public double Evaluate(Array <double> targets, Array <double> outputs)
 {
     return(Sqrt(mse.Evaluate(targets, outputs)));
 }