Hi, I have made the following changes to the code :

Original article was published on Artificial Intelligence on Medium

if __name__ == “__main__”:
X = np.array([[2,4,6,8,10],
y = np.array([[1],[0],[0],[1]])
nn = NeuralNetwork(X,y)

for i in range(900500):


Im trying to train the set to return 1 if the data set is even and 0 if it is odd.

This is the output Im receiving. Could you assist me, where am I going wrong?