Skip to content
Permalink
Browse files

reset meteric when done evaluation (#1020)

  • Loading branch information...
ibeltagy authored and matt-gardner committed Mar 23, 2018
1 parent 3ea3e64 commit a0ced895ad32b09a6185c2b85ff00e5be40d9a45
Showing with 1 addition and 1 deletion.
  1. +1 −1 allennlp/commands/evaluate.py
@@ -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]:

0 comments on commit a0ced89

Please sign in to comment.
You can’t perform that action at this time.