-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
RFE doesn't raise NotFittedError #9276
Copy link
Copy link
Closed
Description
Description
RFE doesnt raise NotFittedError, suspect other meta feature selectors have same issue.
Steps/Code to Reproduce
from sklearn.feature_selection import RFE
from sklearn.linear_model import LinearRegression
X = np.array([[2,2], [2,2]]))
RFE(LinearRegression()).transform(X)Expected Results
NotFittedError
Actual Results
AttributeError: 'RFE' object has no attribute 'support_'
Versions
Darwin-16.5.0-x86_64-i386-64bit
Python 2.7.10 (default, Feb 6 2017, 23:53:20)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
NumPy 1.13.0
SciPy 0.19.0
Scikit-Learn 0.18.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels