XOR can't be solved with one hidden layer. Because you can't separate your labels (0 and 1) with just one line. You can separate them with two lines and then use AND gate (another hidden layer) to find their common area. See this post for clarification: https://medium.com/@jayeshbahire/the-xor-problem-in-neural-networks-50006411840b
↧