ium_434704/save_metrics.py
Wojciech Jarmosz fc177a5f14
Some checks failed
s434704-training/pipeline/head This commit looks good
s434704-evaluation/pipeline/head There was a failure building this commit
Fix for saving metrics
2021-05-14 22:26:47 +02:00

18 lines
317 B
Python

import os.path
import sys
import os.path
arguments = sys.argv[1:]
build_no = arguments[0]
result = ""
if os.path.exists("rmse.txt"):
with open("rmse.txt", "r") as file:
for line in file.readlines():
result = line
with open("bulk_metrics.txt", "a") as file:
file.write(result)