Skip to content

Commit 773a401

Browse files
committed
MIN Fix typo in print call
1 parent ce24484 commit 773a401

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎ch10/simple_classification.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@
4545
# Feel free to experiment with other classifiers
4646
scores=cross_validation.cross_val_score(
4747
LogisticRegression(), haralicks, labels, cv=5)
48-
print('Accuracy (5 fold x-val) with Logistic Regrssion [std features]:{}%'.format(
48+
print('Accuracy (5 fold x-val) with Logistic Regression [std features]:{}%'.format(
4949
0.1*round(1000*scores.mean())))
5050

5151
haralick_plus_sobel=np.hstack([np.atleast_2d(sobels).T, haralicks])
5252
scores=cross_validation.cross_val_score(
5353
LogisticRegression(), haralick_plus_sobel, labels, cv=5).mean()
54-
print('Accuracy (5 fold x-val) with Logistic Regrssion [std features + sobel]:{}%'.format(
54+
print('Accuracy (5 fold x-val) with Logistic Regression [std features + sobel]:{}%'.format(
5555
0.1*round(1000*scores.mean())))
5656

5757

5858
# We can try to just use the sobel feature. The result is almost completely
5959
# random.
6060
scores=cross_validation.cross_val_score(
6161
LogisticRegression(), np.atleast_2d(sobels).T, labels, cv=5).mean()
62-
print('Accuracy (5 fold x-val) with Logistic Regrssion [only using sobel feature]:{}%'.format(
62+
print('Accuracy (5 fold x-val) with Logistic Regression [only using sobel feature]:{}%'.format(
6363
0.1*round(1000*scores.mean())))
6464

0 commit comments

Comments
(0)