Commit 4bba7abb authored by lintangsutawika's avatar lintangsutawika
Browse files

no need to iterate over results for greedy_until

parent a38a0450
...@@ -1017,8 +1017,8 @@ class ConfigurableTask(Task): ...@@ -1017,8 +1017,8 @@ class ConfigurableTask(Task):
else: else:
gold = str(gold) gold = str(gold)
result, _ = results
for metric in self._metric_fn_list.keys(): for metric in self._metric_fn_list.keys():
for result in results:
if self.multiple_target: if self.multiple_target:
# in the case where we have multiple targets, # in the case where we have multiple targets,
# return true if any are true # return true if any are true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment