Estefani Gaytan Nunez
...@@ -89,25 +89,25 @@ if __name__ == '__main__': ...@@ -89,25 +89,25 @@ if __name__ == '__main__':
89 print('------------------------------- SAVING TABLE --------------------------------\n') 89 print('------------------------------- SAVING TABLE --------------------------------\n')
90 with open(os.path.join(options.inputPath, str(options.figureName) ), 'w') as File: 90 with open(os.path.join(options.inputPath, str(options.figureName) ), 'w') as File:
91 91
92 - scoresTable = DF(scores).T 92 + scoresTable = DF(scores).T
93 - 93 +
94 - imageName=os.path.join(options.outputPath, options.figureName) 94 + imageName=os.path.join(options.outputPath, options.figureName)
95 - ylab = "score", 95 + ylab = "score",
96 - fig = plt.figure() 96 + fig = plt.figure()
97 - plt.grid(False) 97 + plt.grid(False)
98 - plt.rcParams.update({'font.size': 15}) 98 + plt.rcParams.update({'font.size': 15})
99 - fig.set_figheight(13) 99 + fig.set_figheight(13)
100 - fig.set_figwidth(20) 100 + fig.set_figwidth(20)
101 - plt.xlabel("Runs") 101 + plt.xlabel("Runs")
102 - plt.ylabel("score") 102 + plt.ylabel("score")
103 - plt.xticks(range(8),scoresTable["CV"].index) 103 + plt.xticks(range(8),scoresTable["CV"].index)
104 - plt.plot(scoresTable['CV'], "--", color="red", label="CV") 104 + plt.plot(scoresTable['CV'], "--", color="red", label="CV")
105 - plt.plot(scoresTable['precision'], color="blue", label="precision") 105 + plt.plot(scoresTable['precision'], color="blue", label="precision")
106 - plt.plot(scoresTable['f1-score'], color="orange", label="F1") 106 + plt.plot(scoresTable['f1-score'], color="orange", label="F1")
107 - plt.plot(scoresTable['recall'], color="g", label="recall") 107 + plt.plot(scoresTable['recall'], color="g", label="recall")
108 - plt.legend(loc='lower right') 108 + plt.legend(loc='lower right')
109 - plt.tight_layout() 109 + plt.tight_layout()
110 - fig.savefig(imageName, pad_inches=0.5) 110 + fig.savefig(imageName, pad_inches=0.5)
111 111
112 112
113 113
......