#381 Allow for Nans in input of Permutation Importance

Open
Showing 1 of 2 files from the diff.

@@ -196,7 +196,7 @@
Loading
196 196
            self.estimator_ = clone(self.estimator)
197 197
            self.estimator_.fit(X, y, **fit_params)
198 198
199 -
        X = check_array(X)
199 +
        X = check_array(X, force_all_finite=False)
200 200
201 201
        if self.cv not in (None, "prefit"):
202 202
            si = self._cv_scores_importances(X, y, groups=groups, **fit_params)

Learn more Showing 49 files with coverage changes found.

Changes in eli5/keras/gradcam.py
+53
Loading file...
Changes in eli5/xgboost.py
+7
+157
Loading file...
Changes in eli5/formatters/image.py
+4
+69
Loading file...
Changes in eli5/keras/explain_prediction.py
+4
+1
+78
Loading file...
Changes in eli5/lightgbm.py
+5
+112
Loading file...
Changes in eli5/catboost.py
+3
+23
Loading file...
Changes in eli5/_decision_path.py
+11
+20
Loading file...
Changes in eli5/keras/__init__.py
+1
+1
Loading file...
Changes in eli5/ipython.py
+30
+1
+4
Loading file...
Changes in eli5/sklearn/permutation_importance.py
+84
+1
+5
Loading file...
Changes in eli5/sklearn/utils.py
+122
+8
+12
Loading file...
Changes in eli5/_feature_names.py
+101
+5
+4
Loading file...
Changes in eli5/lime/utils.py
+63
+3
+8
Loading file...
Changes in eli5/lime/lime.py
+96
+3
+1
Loading file...
Changes in eli5/_graphviz.py
+11
Loading file...
Changes in eli5/sklearn/_span_analyzers.py
+60
Loading file...
Changes in eli5/sklearn/unhashing.py
+159
+3
+2
Loading file...
Changes in eli5/sklearn/explain_weights.py
+148
Loading file...
Changes in eli5/utils.py
+82
+1
Loading file...
Changes in eli5/formatters/utils.py
+72
+1
+1
Loading file...
Changes in eli5/formatters/fields.py
+3
Loading file...
Changes in eli5/__init__.py
+40
+2
+6
Loading file...
Changes in eli5/_feature_weights.py
+43
Loading file...
Changes in eli5/formatters/__init__.py
+14
Loading file...
Changes in eli5/sklearn/transform.py
+35
Loading file...
Changes in eli5/formatters/features.py
+11
+1
+2
Loading file...
Changes in eli5/transform.py
+4
+1
+1
Loading file...
Changes in eli5/_feature_importances.py
+16
Loading file...
Changes in eli5/formatters/as_dict.py
+23
+1
Loading file...
Changes in eli5/base.py
+96
Loading file...
Changes in eli5/formatters/trees.py
+39
Loading file...
Changes in eli5/sklearn_crfsuite/explain_weights.py
+54
Loading file...
Changes in eli5/sklearn/__init__.py
+6
Loading file...
Changes in eli5/formatters/html.py
+110
Loading file...
Changes in eli5/formatters/text_helpers.py
+33
+1
+1
Loading file...
Changes in eli5/lightning.py
+38
+2
Loading file...
Changes in eli5/lime/samplers.py
+150
+1
Loading file...
Changes in eli5/formatters/as_dataframe.py
+66
+2
+1
Loading file...
Changes in eli5/lime/__init__.py
+1
Loading file...
Changes in eli5/lime/_vectorizer.py
+33
+1
Loading file...
Changes in eli5/formatters/text.py
+125
+1
Loading file...
Changes in eli5/sklearn_crfsuite/__init__.py
+2
Loading file...
Changes in eli5/explain.py
+5
+2
Loading file...
Changes in eli5/lime/textutils.py
+100
Loading file...
Changes in eli5/permutation_importance.py
+29
Loading file...
Changes in eli5/sklearn/treeinspect.py
+41
Loading file...
Changes in eli5/base_utils.py
+20
Loading file...
Changes in eli5/sklearn/text.py
+91
+1
+1
Loading file...
Changes in eli5/sklearn/explain_prediction.py
+236
+3
+2
Loading file...
Files Coverage
eli5 -16.74% 80.59%
Project Totals (49 files) 80.59%
Loading