From 2bd6eb69dc33aaf4164d16c81a8c1f0d9be57657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine?= Date: Mon, 27 Jan 2025 09:58:34 +0100 Subject: [PATCH] small fix --- src/lighteval/metrics/metrics_sample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lighteval/metrics/metrics_sample.py b/src/lighteval/metrics/metrics_sample.py index 0720d089f..071c0c427 100644 --- a/src/lighteval/metrics/metrics_sample.py +++ b/src/lighteval/metrics/metrics_sample.py @@ -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: