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],
[1,3,5,7,9],
[11,13,15,17,19],
[22,24,26,28,30]])
y = np.array([[1],[0],[0],[1]])
nn = NeuralNetwork(X,y)

for i in range(900500):
nn.feedforward()
nn.backprop()

print(nn.output)

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?