Skip to content

Instantly share code, notes, and snippets.

@shamdasani shamdasani/ Secret
Created Aug 5, 2017

What would you like to do?
NN = Neural_Network()
for i in xrange(1,000): # trains the NN 1,000 times
print "Input: \n" + str(X)
print "Actual Output: \n" + str(y)
print "Predicted Output: \n" + str(NN.forward(X))
print "Loss: \n" + str(np.mean(np.square(y - NN.forward(X)))) # mean sum squared loss
print "\n"
NN.train(X, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.