mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-31 12:07:49 +01:00
Merge pull request #162 from nbgraham/patch-3
Ch. 3: Fixes precision / recall percent notation
This commit is contained in:
@@ -2714,8 +2714,8 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"y_pred = log_clf.predict(X_test_transformed)\n",
|
"y_pred = log_clf.predict(X_test_transformed)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(\"Precision: {:.2f}%\".format(precision_score(y_test, y_pred)))\n",
|
"print(\"Precision: {:.2f}%\".format(100 * precision_score(y_test, y_pred)))\n",
|
||||||
"print(\"Recall: {:.2f}%\".format(recall_score(y_test, y_pred)))"
|
"print(\"Recall: {:.2f}%\".format(100 * recall_score(y_test, y_pred)))"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user