FINAL HOMEWORK JENKINS2 DONE!!! :)
This commit is contained in:
parent
e615b93b9b
commit
b9884700a8
@ -82,11 +82,11 @@ if __name__ == "__main__":
|
|||||||
fscores = []
|
fscores = []
|
||||||
for c in content:
|
for c in content:
|
||||||
r = re.findall("\d+\.\d+", c)
|
r = re.findall("\d+\.\d+", c)
|
||||||
fscores.append(r[0])
|
fscores.append(float(r[0]))
|
||||||
|
|
||||||
plt.plot(fscores)
|
|
||||||
plt.ylabel('F score')
|
plt.ylabel('F score')
|
||||||
plt.xticks(np.arange(0, len(fscores)+1, 5))
|
plt.plot(np.arange(0, len(fscores)), fscores)
|
||||||
|
# plt.xticks(np.arange(0, len(fscores)+1, 5))
|
||||||
plt.savefig('metrics.png')
|
plt.savefig('metrics.png')
|
||||||
# f.write(f"TP descriptions:")
|
# f.write(f"TP descriptions:")
|
||||||
# for i in TP:
|
# for i in TP:
|
||||||
|
Loading…
Reference in New Issue
Block a user