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