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

Two practical examples

Now, let's take a look at two examples of applications of these simple neural network architectures.

Perceptron (warning system)

To facilitate understanding about perceptron, let's consider a basic warning system. It is based in AND logic. There are two sensors, and the rules of warning are as follows:

  • If both or one of them is disabled, the warning is trigged
  • If both are enabled, the warning is not trigged

The following figure shows the basic warning system:

Perceptron (warning system)

To encode the problem, inputs are represented as follows. 0 means disabled, and 1 means enabled. Output is represented as follows. 0 means enabled, and 1 means disabled. The ...

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