for (int i = 0; i < data.getRecordCount(); i++) {
data.getRecord(i, pair);
compute(pair.getInputArray(), actual);
errorCalculation.updateError(actual, pair.getIdealArray());
}
return errorCalculation.calculate();
}
/**
* Clear any context neurons.
*/