Skip to content

Commit da0ebb7

Browse files
jarverhajarverha
authored andcommitted
Updated validate_data with new version
1 parent 1f1c458 commit da0ebb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

powershap/powershap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from sklearn.base import BaseEstimator
99
from sklearn.feature_selection import SelectorMixin
1010
from sklearn.model_selection import BaseCrossValidator
11-
from sklearn.utils.validation import check_is_fitted
11+
from sklearn.utils.validation import check_is_fitted,validate_data
1212

1313
from .shap_wrappers import ShapExplainerFactory
1414
from .utils import powerSHAP_statistical_analysis
@@ -377,7 +377,7 @@ def fit(self, X, y, stratify=None, groups=None, **kwargs):
377377
#
378378
# If this is changed in some way which would allow explain() to mutate
379379
# the original data, it should cause the data mutation tests to fail.
380-
X, y = self._explainer.validate_data(self.validate_data, X, y, multi_output=True)
380+
X, y = validate_data(self, X, y, multi_output=True)
381381
X = pd.DataFrame(data=X, columns=list(range(X.shape[1])))
382382

383383
self._print("Starting powershap")

0 commit comments

Comments
 (0)