Skip to content

Commit

Permalink
Stricten the conditions for saving models
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit committed Feb 10, 2018
1 parent 3821de9 commit b709d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepcrf/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def eval_loop(x_data, x_char_data, y_data, x_train_additionals=[]):

dev_f = all_result[-1]

if prev_dev_f <= dev_f:
if prev_dev_f < dev_f:
logging.info(' [update best model on dev set!]')
dev_list = [prev_dev_f, dev_f]
dev_str = ' ' + ' => '.join(map(str, dev_list))
Expand Down

0 comments on commit b709d14

Please sign in to comment.