Skip to content

Commit

Permalink
Merge pull request MichalDanielDobrzanski#11 from dgcampbe/patch-1
Browse files Browse the repository at this point in the history
Small update for Python 3
  • Loading branch information
MichalDanielDobrzanski authored Apr 19, 2018
2 parents a8da42f + 998e51b commit ea229ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mnist_svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def svm_baseline():
# test
predictions = [int(a) for a in clf.predict(test_data[0])]
num_correct = sum(int(a == y) for a, y in zip(predictions, test_data[1]))
print "Baseline classifier using an SVM."
print "%s of %s values correct." % (num_correct, len(test_data[1]))
print("Baseline classifier using an SVM.")
print(str(num_correct) + " of " + str(len(test_data[1])) + " values correct.")

if __name__ == "__main__":
svm_baseline()
Expand Down

0 comments on commit ea229ac

Please sign in to comment.