Closed reneheijnemans closed 3 years ago
Never mind,
The coding challenge in Coding Challenge #92: XOR Problem https://www.youtube.com/watch?v=188B6k_F9jU explains this phenomenon as it is getting stuck due to not enough paths for it to solve the problem. Possibly this could be solved by picking the weights more carefully.
Daniel's solution mentioned in the video by adding additional hidden nodes solves this problem.
I am not sure that this is a known issue, but I cannot get the neural network to converge reliably.
In many instances, it just cannot solve the simple XOR problem.
For instance, I had serialized one of the randomly generated NeuralNetworks that displays this problem:
Is this just an issue with the activation function? Then it would be helpful to explain this in the README. Or is there a bug in the code?
The XOR example at https://codingtrain.github.io/Toy-Neural-Network-JS/examples/xor/ also faces this issue ; when refreshing a few times, it will result in the wrong separation visualization.