Skip to content

Commit

Permalink
refactor: round metrics better
Browse files Browse the repository at this point in the history
  • Loading branch information
jExbrayat committed Jan 15, 2024
1 parent 4c94631 commit 88e8218
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/notebooks/supervized_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -614,15 +614,15 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 35,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Random Forest Mean Squared Error = 229.26\n",
"Random Forest Mean Absolute Error = 11.66\n"
"Random Forest Mean Squared Error = 229\n",
"Random Forest Mean Absolute Error = 12\n"
]
}
],
Expand All @@ -634,8 +634,8 @@
"rf_mse = mean_squared_error(y_true=y_test, y_pred=y_pred_rf)\n",
"rf_mae = mean_absolute_error(y_true=y_test, y_pred=y_pred_rf)\n",
"\n",
"print(f\"Random Forest Mean Squared Error = {round(rf_mse, 2)}\")\n",
"print(f\"Random Forest Mean Absolute Error = {round(rf_mae, 2)}\")\n"
"print(f\"Random Forest Mean Squared Error = {round(rf_mse)}\")\n",
"print(f\"Random Forest Mean Absolute Error = {round(rf_mae)}\")\n"
]
},
{
Expand Down

0 comments on commit 88e8218

Please sign in to comment.