Skip to content

Commit

Permalink
Fixes a TypeError for generative metrics. (#386)
Browse files Browse the repository at this point in the history
Co-authored-by: Clémentine Fourrier <[email protected]>
  • Loading branch information
JoelNiklaus and clefourrier authored Nov 13, 2024
1 parent 853e10b commit 9be2a38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lighteval/metrics/sample_preparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class PerplexityCorpusMetricInput(CorpusMetricInput):


class GenerativePreparator:
@staticmethod
def prepare(golds: list[str], predictions: list[str], **kwargs):
"""Prepares an individual generative example to the format expected by metrics computed at the corpus level (aggregated).
Expand Down

0 comments on commit 9be2a38

Please sign in to comment.