Fixes for chart

This commit is contained in:
Wojciech Jarmosz 2021-05-15 03:27:23 +02:00
parent f970648895
commit bc20b3e4e4

View File

@ -10,12 +10,11 @@ y = []
if os.path.exists('bulk_metrics.txt'): if os.path.exists('bulk_metrics.txt'):
with open('bulk_metrics.txt') as file: with open('bulk_metrics.txt') as file:
for line in file.readlines(): for line in file.readlines():
print(line.split(" "))
single_x, single_y = line.split(" ") single_x, single_y = line.split(" ")
x.append(single_x) x.append(single_x)
y.append(single_y) y.append(float(single_y))
plt.plot(x, y) plt.plot(x, y)
plt.xlabel('Jobs') plt.xlabel('Job')
plt.ylabel('RMSE') plt.ylabel('RMSE')
plt.savefig('chart.png') plt.savefig('chart.png')