From 487dd9a2c5b2af04b8e73fb21e7cc933ce3f5659 Mon Sep 17 00:00:00 2001 From: Nick Graham Date: Mon, 22 Jan 2018 14:33:22 -0600 Subject: [PATCH] Fixes precision / recall percent notation 0.95 = 95% 0.95% = 0.0095 --- 03_classification.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/03_classification.ipynb b/03_classification.ipynb index 1e7960a..062fccb 100644 --- a/03_classification.ipynb +++ b/03_classification.ipynb @@ -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)))" ] } ],