List<DataSetRow> rows = dataSet.getRows();
for (int i = 0; i < rows.size(); i++) {
DataSetRow row = rows.get(i);
nnet.setInput(row.getInput());
nnet.calculate();
<BUG>Neuron outputNeuron = nnet.getOutputNeurons()[0];
</BUG>
double err = row.getDesiredOutput()[0] - outputNeuron.getOutput();
double colVal = rows.get(i).getInput()[attribute - 1];
error[counter] = new Point2D.Double(colVal, err);

List<DataSetRow> rows = dataSet.getRows();
for (int i = 0; i < rows.size(); i++) {
DataSetRow row = rows.get(i);
nnet.setInput(row.getInput());
nnet.calculate();
Neuron outputNeuron = nnet.getOutputNeurons().get(0);
double err = row.getDesiredOutput()[0] - outputNeuron.getOutput();
double colVal = rows.get(i).getInput()[attribute - 1];
error[counter] = new Point2D.Double(colVal, err);
