py-xor Using a neural net in scikit-learn to predict the output of XOR logic gates with any number of binary inputs. In ML, XOR is a classification problem and it is solved using a perceptron which is a basic type of ANN.