diff --git a/sklearn/feature_selection/rfe.py b/sklearn/feature_selection/rfe.py index 31ff0057d8d8e37e1ff833a256216a34f4d2bbd5..1cb0fd8a1912bd928e8bb22f3a9c8de810fbc878 100644 --- a/sklearn/feature_selection/rfe.py +++ b/sklearn/feature_selection/rfe.py @@ -136,6 +136,11 @@ class RFE(BaseEstimator, MetaEstimatorMixin, SelectorMixin): return self._fit(X, y) def _fit(self, X, y, step_score=None): + # Parameter step_score controls the calculation of self.scores_ + # step_score is not exposed to users + # and is used when implementing RFECV + # self.scores_ will not be calculated when calling _fit through fit + X, y = check_X_y(X, y, "csc") # Initialization n_features = X.shape[1]