19 lines
473 B
Python
Executable File
19 lines
473 B
Python
Executable File
#!/usr/bin/python3
|
|
import matplotlib
|
|
import matplotlib.pyplot as plt
|
|
|
|
data = []
|
|
with open('metrics.txt', 'r') as metrics:
|
|
for line in metrics:
|
|
data.append(line.strip().split('\t'))
|
|
|
|
|
|
# print(acc)
|
|
labels = ['accuracy','precision','recall']
|
|
builds = [x for x in range(len(data))]
|
|
fig = plt.figure()
|
|
ax = fig.add_subplot(1,1,1)
|
|
for i in range(3):
|
|
ax.plot(builds, [data[x][i] for x in range(len(data))], label=labels[i])
|
|
plt.legend()
|
|
plt.savefig('metrics.png') |