From 79947a5811c20ad208a602799de9dfcf6d1d1a47 Mon Sep 17 00:00:00 2001 From: s464953 Date: Thu, 9 May 2024 02:28:21 +0200 Subject: [PATCH] added model evaluation --- use_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/use_model.py b/use_model.py index 56089cf..301d684 100644 --- a/use_model.py +++ b/use_model.py @@ -16,7 +16,7 @@ def calculate_metrics(result): if os.path.exists(filename): metrics_df = pd.read_csv(filename) new_row = pd.DataFrame({'Build number': sys.argv[1], 'RMSE': [rmse], 'F1 Score': [f1], 'Accuracy': [accuracy]}) - metrics_df = metrics_df.append(new_row, ignore_index=True) + metrics_df = pd.concat([metrics_df, new_row], ignore_index=True) else: metrics_df = pd.DataFrame({'Build number': sys.argv[1], 'RMSE': [rmse], 'F1 Score': [f1], 'Accuracy': [accuracy]})