Skip to content

Commit d186b23

Browse files
committed
Also show Pre and Rec each epoch
1 parent 63f7f10 commit d186b23

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ venv*
44
*.pckl
55
*.gz
66
*.nyp
7-
*.txt
7+
*.txt
8+
.DS_Store

examples/elman_forward.py

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ def main():
9090
res_test = conlleval(predictions_test, groundtruth_test, words_test, folder + '/current.test.txt')
9191
res_valid = conlleval(predictions_valid, groundtruth_valid, words_valid, folder + '/current.valid.txt')
9292

93+
print(" -- Pre: %r" % res_valid['p'])
94+
print(" -- Rec: %r" % res_valid['r'])
95+
9396
if res_valid['f1'] > best_f1:
9497
rnn.save(folder)
9598
best_f1 = res_valid['f1']

0 commit comments

Comments
 (0)