Skip to content

Commit

Permalink
MNIST
Browse files Browse the repository at this point in the history
  • Loading branch information
fegin committed Jun 7, 2015
1 parent 1d6d60c commit 4125246
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spartan/examples/mnist_mlp.py
Expand Up @@ -160,6 +160,10 @@ def run(self):
#a2 = relu(np.dot(self.w1, a1) + self.b1)
#a3 = np.dot(self.w2, a2) + self.b2
#correct = np.argmax(a3, axis=0) - np.argmax(test_labels.T, axis=0)
a1 = test_samples.T
a2 = relu(spartan.dot(self.w1, a1) + self.b1)
a3 = spartan.dot(self.w2, a2) + self.b2
correct = spartan.argmax(a3, axis=0) - spartan.argmax(test_labels.T, axis=0)
##print correct
#print 'Testing error:', float(np.count_nonzero(correct)) / num_test_samples
#print '---Finish epoch #%d' % epoch
Expand Down

0 comments on commit 4125246

Please sign in to comment.