Estefani Gaytan Nunez

upload

......@@ -38,7 +38,7 @@ def savescreen(output, dic, path):
if output:
DF.from_dict(dic).to_csv(path+'.csv', sep = "\t", index = True)
def maxPoint(yvalues):
scorelist = list(yvalues)
scorelist = [float(i) for i in yvalues]
y = max(scorelist)
x = scorelist.index(y)
return(x,y)
......@@ -97,10 +97,16 @@ if __name__ == '__main__':
plt.grid()
plt.plot(scoresTable['precision'],'co--', label='precision', linewidth=1, markersize=4)
x,y = maxPoint(scoresTable['precision'])
plt.plot(x, y, markersize=10)
plt.plot(x, y, markersize=10)
plt.plot(scoresTable['f1-score'], 'bo--', label='F1', linewidth=1, markersize=4)
x,y = maxPoint(scoresTable['f1-score'])
plt.plot(x, y, markersize=10)
plt.plot(scoresTable['recall'], 'mo--', label='recall' , linewidth=1, markersize=4)
x,y = maxPoint(scoresTable['recall'])
plt.plot(x, y, markersize=10)
plt.plot(scoresTable['CV'], 'ro--', label='CV' , linewidth=1, markersize=4)
x,y = maxPoint(scoresTable['CV'])
plt.plot(x, y, markersize=10)
for k,v in dict(scoresTable).items():
for a,b in zip(range(64), v):
plt.text(a-0.5, float(b)+0.0020, b[0:6], fontsize=5)
......