February 2019
Beginner to intermediate
308 pages
7h 42m
English
Now that we have our complete Python code for doing feedforward and backpropagation, let's apply our neural network on an example and see how well it does.
The following table contains four data points, each with three input variables ( x1, x2, and x3) and a target variable (Y):
| x1 | x2 | x3 | Y |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 |
Our neural network should learn the ideal set of weights to represent this function. Note that it isn't exactly trivial for us to work out the weights just by inspection alone.
Let's train the neural network for 1,500 iterations and see what happens. Looking at the following loss-per-iteration graph, we can clearly see the loss monotonically decreasing toward a minimum. This is consistent ...