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 <22726840+clefourrier@users.noreply.github.com>
  • Loading branch information
2 people authored and Hynek Kydlicek committed Nov 26, 2024
1 parent 1a7729b commit 99ed6ed
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 99ed6ed

Please sign in to comment.