NumPy-Perceptron NumPy Perceptron with train loss and decision rule plotting. data = [([0, 0], [0]), ([0, 1], [0]), ([1, 1], [1]), ([1, 0], [0])] p = Perceptron() p.fit(data)