From 48bee8befbde8d61f4f101c676fd78ff3df9d76a Mon Sep 17 00:00:00 2001 From: Auguste Baum Date: Tue, 4 Mar 2025 11:47:21 +0100 Subject: [PATCH] fix failing test --- .../src/skore/sklearn/_estimator/feature_importance_accessor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skore/src/skore/sklearn/_estimator/feature_importance_accessor.py b/skore/src/skore/sklearn/_estimator/feature_importance_accessor.py index f3ec08b3a..8fcb34f06 100644 --- a/skore/src/skore/sklearn/_estimator/feature_importance_accessor.py +++ b/skore/src/skore/sklearn/_estimator/feature_importance_accessor.py @@ -233,6 +233,8 @@ def _feature_permutation( if callable(scoring) or isinstance(scoring, (list, dict)): cache_key_parts.append(joblib.hash(scoring)) + else: + cache_key_parts.append(scoring) # order arguments by key to ensure cache works # n_jobs variable should not be in the cache