Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Undefined variable in metrics.py (#3622)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenroller authored Apr 27, 2021
1 parent 6120596 commit 1fdb3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parlai/core/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ def _consume_user_metrics(self, observation):
if uk in ALL_METRICS:
# don't let the user override our metrics
uk = f'USER_{uk}'
assert isinstance(uk, str), type(k)
assert isinstance(uk, str), f'{type(uk)} is not a str'
if not isinstance(v, Metric):
warn_once(f'Metric {uk} is assumed to be averaged per example.')
v = AverageMetric(v)
Expand Down

0 comments on commit 1fdb3d6

Please sign in to comment.