s452111-mlworkshops/draw_plot_wer.py

24 lines
450 B
Python
Raw Normal View History

2020-04-22 16:54:13 +02:00
import matplotlib
import matplotlib.pyplot as plt
import csv
matplotlib.use('Agg')
axe_x = []
axe_y = []
builds_iterator = 1
with open('wer.txt','r') as file:
plots = csv.reader(file)
for row in plots:
y.append(float(row[0]))
x.append(int(i))
i=i+1
plt.plot(x,y)
plt.ylabel('Percentage Word Error Rate')
plt.xlabel('Build')
plt.title('WER over several builds')
plt.legend()
plt.savefig('wer_over_several_builds.png')