Unit 12 — Testing the trained network
Give the trained network a number it has never seen.
By Charles Joseph · Updated
Share
Share
Copy Link
In this article
Close
Our network learned from three inputs. They were 1, 2, and 3.
Now give it 5. Double 5 is 10. What will the network say?
During training, the network made 600 updates in 200 epochs. For this test, we keep those settings fixed.
The hidden neuron gives about 7.0795. The output neuron gives 9.9971.
That's about 0.003 short of 10.
| New input | Prediction | Target |
|---|---|---|
| 4 | 7.9984 | 8 |
| 5 | 9.9971 | 10 |
| 10 | 19.9907 | 20 |
Using what it learned on a new example is called generalization.
Exercise
Try 20. Then try −1. The network practiced only with positive numbers. How well does its doubling rule work on each side of zero?
On a negative input, the hidden neuron sends out zero. That's why the trained line in the graph goes flat to the left of zero.
QUOTE:
"Amateurs hack systems, professionals hack people."