Skip to content

Commit

Permalink
results formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nooralahzadeh committed Mar 12, 2019
1 parent 29ad819 commit d6683dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dsner.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ def main():
args.seed)
logger.debug('==> New optimum found, checkpointing everything now...')
torch.save(checkpoint, '%s.pt' % os.path.join(args.save, filename))

f1s[epoch] = {'T': [round(train_f1,2)], 'D': [round(dev_f1,2)], 'E': [round(test_f1,2)]}
train_f1 = train_f1 if train_f1 == 'NAN' else round(train_f1, 2)
f1s[epoch] = {'T': [train_f1], 'D': [round(dev_f1,2)], 'E': [round(test_f1,2)]}
print(f1s)

out_name = 'ner-{}-{}-{}'.format(dataset, args.mode, args.setup)
Expand Down

0 comments on commit d6683dc

Please sign in to comment.