Perceptron used in learning Logic AND(OR) Gate ( Jupyter notebook )

from the given code test the following parameter individually, then write a summary of your observations
(1) initializing the weights
(2) learning rate
(3) threshold for step function
(4) total iterations(epochs)
(5) Stop criteria: error == 0 or max epoch ….
– you need to modify the code to compare the Stochastic with Batch