Skip to content

Commit 58b0c31

Browse files
add if
1 parent 4303144 commit 58b0c31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

skore/src/skore/_sklearn/_comparison/metrics_accessor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ def _compute_metric_scores(
245245

246246
if isinstance(kwargs["scoring"], str):
247247
scorings = [kwargs["scoring"]]
248+
elif kwargs["scoring"] is None or callable(kwargs["scoring"]):
249+
scorings = [] # No processing needed
248250
else:
249251
scorings = kwargs["scoring"]
250252

0 commit comments

Comments
 (0)