2021-05-14 04:01:11 +02:00
|
|
|
import sys
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
import matplotlib
|
|
|
|
from matplotlib import pyplot as plt
|
|
|
|
|
|
|
|
x = []
|
|
|
|
y = []
|
|
|
|
|
|
|
|
if os.path.exists('bulk_metrics.txt'):
|
|
|
|
with open('bulk_metrics.txt') as file:
|
|
|
|
for line in file.readlines():
|
|
|
|
single_x, single_y = line.split(" ")
|
|
|
|
x.append(single_x)
|
2021-05-15 03:27:23 +02:00
|
|
|
y.append(float(single_y))
|
2021-05-14 04:01:11 +02:00
|
|
|
|
|
|
|
plt.plot(x, y)
|
2021-05-15 03:27:23 +02:00
|
|
|
plt.xlabel('Job')
|
2021-05-14 04:01:11 +02:00
|
|
|
plt.ylabel('RMSE')
|
|
|
|
plt.savefig('chart.png')
|