In understanding what a neural network really helped, this article Habra. In principle, I try it.
The fact is that, it seems, two hidden neurons are not enough to train the XOR neural network. At least according to this algorithm. Because in the end, for input values 1 and 1, the result in the process of learning is stuck at 0.52-0.57. Ie, roughly speaking in the middle. This is after 1,000,000 epochs.
I tried to increase the number of neurons to 3, tug-of-war (result for 1 and 1) remains until about 70.000 epochs, then the system finds a solution.
A larger number of neurons allows you to quickly train the system? Or how? How to determine the number of neurons on a layer and the number of layers? I have never seen an exact explanation on this.
