Zaktualizuj 'predict.py'

This commit is contained in:
Michał Dudziak 2023-05-10 17:52:33 +02:00
parent 89c60f07ba
commit d72ce5076a

View File

@ -28,4 +28,6 @@ f1 = f1_score(y_true, y_pred, average='micro')
with open('metrics.txt', 'w') as f:
f.write(f"Accuracy: {accuracy:.4f}\n")
f.write(f"Micro-average Precision: {precision:.4f}\n")
f.write(f"Micro-average F1-score: {f1:.4f}\n")
f.write(f"Micro-average F1-score: {f1:.4f}\n")
os.system("docker cp metrics.txt . ")