O'Reilly logo

Neural Network Programming with Java by Fábio M. Soares, Alan M.F. Souza

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Java implementation for weather prediction

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.

Plotting charts

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required