Merge pull request #162 from nbgraham/patch-3

Ch. 3: Fixes precision / recall percent notation
main
Aurélien Geron 2018-01-24 15:33:19 +01:00 committed by GitHub
commit a6fdeb23dd
1 changed files with 2 additions and 2 deletions

View File

@ -2714,8 +2714,8 @@
"\n",
"y_pred = log_clf.predict(X_test_transformed)\n",
"\n",
"print(\"Precision: {:.2f}%\".format(precision_score(y_test, y_pred)))\n",
"print(\"Recall: {:.2f}%\".format(recall_score(y_test, y_pred)))"
"print(\"Precision: {:.2f}%\".format(100 * precision_score(y_test, y_pred)))\n",
"print(\"Recall: {:.2f}%\".format(100 * recall_score(y_test, y_pred)))"
]
}
],