@Override
public void onIterationFinished(int iteration, double cost,
DoubleVector currentWeights) {
if (iteration % runInterval == 0) {
A classifier = mapper.mapWeights(currentWeights);
EvaluationResult testEval = Evaluator.testClassifier(classifier,
split.getTestFeatures(), split.getTestOutcome());
EvaluationResult trainEval = Evaluator.testClassifier(classifier,
split.getTrainFeatures(), split.getTrainOutcome());
onResult(iteration, cost, trainEval, testEval);
print(iteration, cost, trainEval, testEval);
}
}