Zaktualizuj 'predict.py'
This commit is contained in:
parent
89c60f07ba
commit
d72ce5076a
@ -28,4 +28,6 @@ f1 = f1_score(y_true, y_pred, average='micro')
|
|||||||
with open('metrics.txt', 'w') as f:
|
with open('metrics.txt', 'w') as f:
|
||||||
f.write(f"Accuracy: {accuracy:.4f}\n")
|
f.write(f"Accuracy: {accuracy:.4f}\n")
|
||||||
f.write(f"Micro-average Precision: {precision:.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 . ")
|
Loading…
Reference in New Issue
Block a user