Skip to content

Commit 99ed6ed

Browse files
JoelNiklausclefourrier
authored andcommitted
Fixes a TypeError for generative metrics. (#386)
Co-authored-by: Clémentine Fourrier <[email protected]>
1 parent 1a7729b commit 99ed6ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lighteval/metrics/sample_preparator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class PerplexityCorpusMetricInput(CorpusMetricInput):
5555

5656

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

0 commit comments

Comments
 (0)