Showing
3 changed files
with
9 additions
and
4 deletions
... | @@ -68,11 +68,11 @@ if __name__ == '__main__': | ... | @@ -68,11 +68,11 @@ if __name__ == '__main__': |
68 | for report in reportFileList: | 68 | for report in reportFileList: |
69 | with open(os.path.join(options.inputPath, report), 'r') as File: | 69 | with open(os.path.join(options.inputPath, report), 'r') as File: |
70 | string = File.read() | 70 | string = File.read() |
71 | - scores[report[7:11]]['CV']=re.findall('best\sCV\sscore\:(\d+\.\d+)', string)[0] | 71 | + scores[report[7:12].replace('_', ' ')]['CV']=re.findall('best\sCV\sscore\:(\d+\.\d+)', string)[0] |
72 | summaryScores = re.findall('avg\s\/\stotal\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)', string)[0] | 72 | summaryScores = re.findall('avg\s\/\stotal\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)', string)[0] |
73 | - scores[report[7:11]]['precision']=summaryScores[0] | 73 | + scores[report[7:12].replace('_', ' ')]['precision']=summaryScores[0] |
74 | - scores[report[7:11]]['recall']=summaryScores[1] | 74 | + scores[report[7:12].replace('_', ' ')]['recall']=summaryScores[1] |
75 | - scores[report[7:11]]['f1-score']=summaryScores[2] | 75 | + scores[report[7:12].replace('_', ' ')]['f1-score']=summaryScores[2] |
76 | 76 | ||
77 | print(DF(scores).T) | 77 | print(DF(scores).T) |
78 | scoresTable = DF(scores).T | 78 | scoresTable = DF(scores).T | ... | ... |
CRF/figures/FigureGrid_v14.csv
0 → 100644
1 | + Run1 Run10 Run11 Run12 Run13 Run14 Run15 Run16 Run2 Run3 Run4 Run5 Run6 Run7 Run8 Run9 | ||
2 | +CV 0.8166537086281624 0.8426343854107191 0.8200149039218473 0.8369330476694216 0.8308032444965605 0.8497587132907273 0.8354648872990671 0.856091701330711 0.8209562028933415 0.8200873889763314 0.8172882049457899 0.830775030715119 0.8434032566660784 0.836408383376389 0.843848676674025 0.8189566663670631 | ||
3 | +f1-score 0.806 0.805 0.802 0.816 0.815 0.821 0.817 0.813 0.806 0.813 0.804 0.817 0.815 0.821 0.818 0.812 | ||
4 | +precision 0.848 0.911 0.907 0.919 0.919 0.864 0.857 0.905 0.907 0.898 0.846 0.859 0.919 0.860 0.914 0.843 | ||
5 | +recall 0.773 0.746 0.742 0.752 0.754 0.789 0.785 0.756 0.748 0.764 0.771 0.783 0.754 0.789 0.760 0.787 |
CRF/figures/FigureGrid_v14.png
0 → 100644

121 KB
-
Please register or login to post a comment