We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8da42f commit ce2c044Copy full SHA for ce2c044
mnist_svm.py
@@ -20,8 +20,8 @@ def svm_baseline():
20
# test
21
predictions = [int(a) for a in clf.predict(test_data[0])]
22
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]))
+ print("Baseline classifier using an SVM.")
+ print(num_correct + " of " + len(test_data[1]) + " values correct.")
25
26
if __name__ == "__main__":
27
svm_baseline()
0 commit comments