Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better messaging around failures in RFE #424

Closed
mikekaminsky opened this issue May 4, 2016 · 3 comments
Closed

Better messaging around failures in RFE #424

mikekaminsky opened this issue May 4, 2016 · 3 comments

Comments

@mikekaminsky
Copy link

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."

topepo added a commit that referenced this issue May 31, 2016
@topepo
Copy link
Owner

topepo commented May 31, 2016

Agreed! I expanded it a little.

@topepo topepo closed this as completed May 31, 2016
@ashvin-p
Copy link

ashvin-p commented Aug 4, 2017

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

@topepo
Copy link
Owner

topepo commented Aug 25, 2017

You can filter these out when you build the model but using "zv" in the list of preProc arguments to train.

And what does "failed to drop one of your dummy variables" mean?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants