ium_426206/plot.py

16 lines
364 B
Python

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
y = []
with open('metrics.tsv','r') as test_in_file:
for line in test_in_file:
y.append(float(line.rstrip('\n')))
fig = plt.figure()
plt.plot(list(range(1,len(y)+1)), y)
plt.xticks(range(1,len(y)+1))
plt.ylabel("MSE")
plt.xlabel("Build number")
plt.savefig('plot.png')
plt.show()