Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
clefourrier committed Jul 5, 2024
1 parent 417a7aa commit 129ba24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lighteval/metrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def higher_is_better():
if isinstance(metric.value, MetricGrouping):
res.update(metric.value.higher_is_better)
else:
res[metric.value.metric] = metric.value.higher_is_better
res[metric.value.metric_name] = metric.value.higher_is_better
return res

@staticmethod
Expand All @@ -613,5 +613,5 @@ def all_metrics():
for metric in Metrics:
if metric.value.category == MetricCategory.IGNORED:
continue
res.extend(as_list(metric.value.metric))
res.extend(as_list(metric.value.metric_name))
return res

0 comments on commit 129ba24

Please sign in to comment.