Changed two print statements to print functions to be compatible with Python 3 instead of Python 2.
# test\r
predictions = [int(a) for a in clf.predict(test_data[0])]\r
num_correct = sum(int(a == y) for a, y in zip(predictions, test_data[1]))\r
- print "Baseline classifier using an SVM."\r
- print "%s of %s values correct." % (num_correct, len(test_data[1]))\r
+ print("Baseline classifier using an SVM.")\r
+ print(num_correct + " of " + len(test_data[1]) + " values correct.")\r
\r
if __name__ == "__main__":\r
svm_baseline()\r