diff --git a/03_classification.ipynb b/03_classification.ipynb index 47e7430..0203ff2 100644 --- a/03_classification.ipynb +++ b/03_classification.ipynb @@ -4659,8 +4659,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "Precision: 0.95%\n", - "Recall: 0.98%\n" + "Precision: 95.00%\n", + "Recall: 98.00%\n" ] } ], @@ -4674,8 +4674,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)))" ] } ],