Fixes precision / recall percent notation
0.95 = 95% 0.95% = 0.0095
This commit is contained in:
@@ -4659,8 +4659,8 @@
|
|||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Precision: 0.95%\n",
|
"Precision: 95%\n",
|
||||||
"Recall: 0.98%\n"
|
"Recall: 98%\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -4674,8 +4674,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