Skip to content

Commit ea229ac

Browse files
Merge pull request MichalDanielDobrzanski#11 from dgcampbe/patch-1
Small update for Python 3
2 parents a8da42f + 998e51b commit ea229ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mnist_svm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def svm_baseline():
2020
# test
2121
predictions = [int(a) for a in clf.predict(test_data[0])]
2222
num_correct = sum(int(a == y) for a, y in zip(predictions, test_data[1]))
23-
print "Baseline classifier using an SVM."
24-
print "%s of %s values correct." % (num_correct, len(test_data[1]))
23+
print("Baseline classifier using an SVM.")
24+
print(str(num_correct) + " of " + str(len(test_data[1])) + " values correct.")
2525

2626
if __name__ == "__main__":
2727
svm_baseline()

0 commit comments

Comments
 (0)