Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter messaging around failures in RFE #424
Comments
|
Agreed! I expanded it a little. |
|
I am getting the "This may be caused by having zero-variance predictors, excessively-correlated predictors, or you may have failed to drop one of your dummy variables." error now. I checked for zero variation predictors and removed highly correlated predictors. So I assume that i need to drop one of my dummy variables. How do I know which column to drop? And what does "failed to drop one of your dummy variables" mean? Ashvin |
|
You can filter these out when you build the model but using
That means you have dummy variables for all of the factor levels (instead of leaving one out). This can cause a linear dependency in the X matrix. |
This failure message in RFE could be more helpful. I just spent two hours debugging my own stupid mistake where I failed to drop one of my dummy-variable columns :(.
To help people in the future, maybe we could add something like: "This may be caused by having zero-variance predictors, excessively-correlated predictors, or you may have failed to drop one of your dummy variables."