Can't use imputation inside RFECV #28818
fgbaccarin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, everyone!
I am trying to do a Recursive Feature Elimination procedure using
RFECV
. My model is aPipeline
of the form:When I try to fit a
RFECV
with thisPipeline
, however, I get the following error:My code is as follows:
Given that I have a
SimpleImputer
inside myPipeline
, I think the error I am getting is quite odd, since my data will not have anyNaN
s when fitting is actually done. Is this perhaps a bug or am I missing something about the wayRFECV
works?Beta Was this translation helpful? Give feedback.
All reactions