June 2017
Intermediate to advanced
744 pages
16h 41m
English
Now let's see the multilayer perceptron in action. We coded the example XORTest.java, which basically creates two neural networks with the following features:
|
Neural Network |
Perceptron |
Multi-layer Percepetron |
|---|---|---|
|
Inputs |
2 |
2 |
|
Outputs |
1 |
1 |
|
Hidden Layers |
0 |
1 |
|
Hidden Neurons in each layer |
0 |
2 |
|
Hidden Layer Activation Function |
Non |
Sigmoid |
|
Output Layer Activation Function |
Linear |
Linear |
|
Training Algorithm |
Delta Rule |
Backpropagation |
|
Learning Rate |
0.1 |
0.3 Momentum 0.6 |
|
Max Epochs |
4000 |
4000 |
|
Min. overall error |
0.1 |
0.01 |
In Java, this is coded as follows:
public class XORTest { public static void main(String[] args){ RandomNumberGenerator.seed=0; int numberOfInputs=2; ...Read now
Unlock full access