Skip to content

Commit

Permalink
fix bug in test-mode evaluation (wrong key for transfer tasks)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianyu Gao committed Jul 1, 2021
1 parent 0f7e8e8 commit cc0a168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def batcher(params, batch, max_length=None):
for task in ['MR', 'CR', 'SUBJ', 'MPQA', 'SST2', 'TREC', 'MRPC']:
task_names.append(task)
if task in results:
scores.append("%.2f" % (results[task]['devacc']))
scores.append("%.2f" % (results[task]['acc']))
else:
scores.append("0.00")
task_names.append("Avg.")
Expand Down

0 comments on commit cc0a168

Please sign in to comment.