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