Skip to content

Commit 4533988

Browse files
authored
Update experiments.py
1 parent 81381de commit 4533988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

part2/experiments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def test_svm_classifier(C, kernel, gamma="scale"):
174174
# Test it
175175
results = svm_classifier.predict(test_emails)
176176
accuracy = str("{0:.3%}").format(numpy.mean(results == test_labels))
177-
print("With C = " + str(C) + "; gamma = " + str(gamma) + "; accuracy was " + accuracy)
177+
print("C = " + str(C) + "; gamma = " + str(gamma) + "; accuracy = " + accuracy)
178178

179179

180180
def test_perceptron_classifier():

0 commit comments

Comments
 (0)