From 88e82188e06585ea52751e5dd99a75fd7b50b927 Mon Sep 17 00:00:00 2001 From: jExbrayat Date: Mon, 15 Jan 2024 18:46:35 +0100 Subject: [PATCH] refactor: round metrics better --- src/notebooks/supervized_regression.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/notebooks/supervized_regression.ipynb b/src/notebooks/supervized_regression.ipynb index 151f9ff..766cd3c 100644 --- a/src/notebooks/supervized_regression.ipynb +++ b/src/notebooks/supervized_regression.ipynb @@ -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" ] } ], @@ -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" ] }, {