In order to implement this case in Java, we had to make some adjustments in the already written code. The
NeuralNet class is updated with a new method called
getNetOutputValues(), to give some output values given a training input dataset. This method performs almost the same operation as the forward method in the backpropagation phase, except for the fact that it returns a matrix containing the output dataset.
In addition, we had to add two components to the project (package
edu.packt.neuralnet.util): data and chart.
Charts can be drawn in Java by using the freely available package JFreeChart (http://www.jfree.org/jfreechart/). This package is attached with this chapter's source code. So, ...