Book Image

Neural Network Programming with Java

By : Alan M. F. Souza, Fabio M. Soares
Book Image

Neural Network Programming with Java

By: Alan M. F. Souza, Fabio M. Soares

Overview of this book

<p>Vast quantities of data are produced every second. In this context, neural networks become a powerful technique to extract useful knowledge from large amounts of raw, seemingly unrelated data. One of the most preferred languages for neural network programming is Java as it is easier to write code using it, and most of the most popular neural network packages around already exist for Java. This makes it a versatile programming language for neural networks.</p> <p>This book gives you a complete walkthrough of the process of developing basic to advanced practical examples based on neural networks with Java.</p> <p>You will first learn the basics of neural networks and their process of learning. We then focus on what Perceptrons are and their features. Next, you will implement self-organizing maps using the concepts you’ve learned. Furthermore, you will learn about some of the applications that are presented in this book such as weather forecasting, disease diagnosis, customer profiling, and characters recognition (OCR). Finally, you will learn methods to optimize and adapt neural networks in real time.</p> <p>All the examples generated in the book are provided in the form of illustrative source code, which merges object-oriented programming (OOP) concepts and neural network features to enhance your learning experience.</p>
Table of Contents (19 chapters)
Neural Network Programming with Java
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Coding of the neural network learning


Now, it is time to develop a neural network using OOP concepts and explain the related theory. The project presented in the previous chapter was adapted to implement the perceptron and adaline rules, as well as the Delta rule.

The NeuralNet class presented in the previous chapter has been updated to include the training dataset (input and target output), learning parameters, and activation function settings. The InputLayer function was also updated to include one method. We added to the project the Adaline, Perceptron, and Training classes. Details on the implementation of each class can be found in the codes. However, now, let's make the connection between the neural learning and the Java implementation of the Training class.

Learning parameter implementation

The Training class should be used for training neural networks. In this chapter, we are going to use this class to train Perceptron and Adaline classes. Also, the activation functions that are foreseen...