A Python script demonstrating training a Perceptron Artificial Neural Network using the gradient descent training method to act as a linear classifier for the logical AND operator. The network can easily be adapted to solve the logical OR method by changing the networks training data set.
Execute the following.
python perceptron.py