s452111-mlworkshops/draw_plot_wer.py

24 lines
454 B
Python

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import csv
axe_x = []
axe_y = []
it = 1
with open('wer.txt','r') as file:
plots = csv.reader(file)
for row in plots:
axe_y.append(float(row[0]))
axe_x.append(int(it))
it+=1
plt.plot(axe_x,axe_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')