s452108-mlworkshops/plotwer.py

21 lines
376 B
Python
Raw Normal View History

2020-04-05 18:31:32 +02:00
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:
x.append(round(row[0], 2))
y.append(i)
i=i+1
plt.plot(x,y, label='WER')
plt.xlabel('WER')
plt.ylabel('Numer')
2020-04-05 19:55:01 +02:00
plt.title('Average plot WER')
2020-04-05 18:31:32 +02:00
plt.legend()
plt.savefig('plotwer.png')