for (final MLDataPair pair : data) {
final MLData actual = method.compute(pair.getInput());
errorCalculation.updateError(actual.getData(), pair.getIdeal()
.getData(),pair.getSignificance());
}
return errorCalculation.calculate();
}
public static void saveCSV(File targetFile, CSVFormat format, MLDataSet set) {
try {
FileWriter outFile = new FileWriter(targetFile);