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