From 8e2c2cce9b906e28189ae1c6c02f17c0a08f6220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ga=C5=82ka?= Date: Wed, 10 May 2023 23:45:06 +0200 Subject: [PATCH] Update 'predict.py' --- predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/predict.py b/predict.py index 16c7396..c25933b 100644 --- a/predict.py +++ b/predict.py @@ -14,7 +14,7 @@ y_to_test = pandas.read_csv('./Y_test.csv') accu = reloaded.evaluate(x_to_test, y_to_test) -with open('metrics.txt', 'w') as file: +with open('metrics.txt', 'a') as file: file.write(f'Accuracy: {accu}') pre = reloaded.predict(x_to_test)