Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -273,7 +273,7 @@ if __name__ == "__main__": | ... | @@ -273,7 +273,7 @@ if __name__ == "__main__": |
273 | # labels.remove('O') | 273 | # labels.remove('O') |
274 | 274 | ||
275 | with open(os.path.join(options.outputPath, "reports", "report_" + nameReport), mode="a") as oFile: | 275 | with open(os.path.join(options.outputPath, "reports", "report_" + nameReport), mode="a") as oFile: |
276 | - oFile.write('********** EVALUATION **********\n') | 276 | + oFile.write('\n********** EVALUATION **********\n') |
277 | oFile.write("Flat F1: " + str(metrics.flat_f1_score(y_test, y_pred, average='weighted', labels=labels))) | 277 | oFile.write("Flat F1: " + str(metrics.flat_f1_score(y_test, y_pred, average='weighted', labels=labels))) |
278 | oFile.write('\n') | 278 | oFile.write('\n') |
279 | # labels = list(crf.classes_) | 279 | # labels = list(crf.classes_) | ... | ... |
-
Please register or login to post a comment