s452108-mlworkshops/plotwer.py
2020-04-05 20:12:48 +02:00

24 lines
406 B
Python

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import csv
x = []
y = []
i = 0
with open('averagewer.txt','r') as csvfile:
plots = csv.reader(csvfile, delimiter=' ')
for row in plots:
y.append(float(row[0]))
x.append(int(i))
i=i+1
plt.plot(x,y)
plt.ylabel('WER')
plt.xlabel('Numer')
plt.title('Average plot WER')
plt.legend()
plt.savefig('plotwer.png')