Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clefourrier committed Jan 27, 2025
1 parent 5bea2f6 commit 2bd6eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lighteval/metrics/metrics_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def __init__(
self.strip_strings = strip_strings

# Managed the logic of the per prediction of sample scoring
if isinstance(sample_scoring_function, callable):
if callable(sample_scoring_function):
self.score_sample = sample_scoring_function
self.type_exact_match = None
else:
Expand Down

0 comments on commit 2bd6eb6

Please sign in to comment.