There was an error while loading. Please reload this page.
1 parent a26828e commit 3aa2712Copy full SHA for 3aa2712
part2/experiments.py
@@ -40,7 +40,8 @@ def main():
40
else:
41
num_wrongly_classified += 1
42
43
- print("Accuracy of SVM classifier was " + str("{0:.3%}").format(numpy.mean(results == test_labels)))
+ accuracy = str("{0:.3%}").format(numpy.mean(results == test_labels))
44
+ print("Accuracy of SVM classifier was " + accuracy)
45
46
47
def parse_command_line_arguments():
0 commit comments