Skip to content

Commit

Permalink
reset meteric when done evaluation (allenai#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibeltagy authored and matt-gardner committed Mar 23, 2018
1 parent 419ae2c commit 44dc564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allennlp/commands/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def evaluate(model: Model,
description = ', '.join(["%s: %.2f" % (name, value) for name, value in metrics.items()]) + " ||"
generator_tqdm.set_description(description, refresh=False)

return model.get_metrics()
return model.get_metrics(reset=True)


def evaluate_from_args(args: argparse.Namespace) -> Dict[str, Any]:
Expand Down

0 comments on commit 44dc564

Please sign in to comment.