-
Notifications
You must be signed in to change notification settings - Fork 635
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
R caret: rfe nnet “undefined columns selected” #485
Comments
It looks like a bug. That code hasn't been touched in a while so I'm not sure why it would show up as an error now unless the underlying package changed. Either way, I'll make sure that it gets fixed. Thanks, Max |
Please take a look at those changes. The test case that you gave me works but it would be good to test it in the context of what you were working on (assuming it wasn't the irises) |
Dear Max, |
No problem. Thanks! |
Dear Max, |
Same issue for me with lmFuncs in caret_6.0-77. Also just tested with caret_6.0-78. |
Same for me |
Here as well |
Similar issue |
hi everyone, Can anyone help?? inTrainingSet_aml <- createDataPartition(combined_AML$index.oninvestment ,p=.80,list=0) predVars.I1 <- names(combined_AML)[!(names(combined_AML) %in% c( "index.oninvestment", marsFuncs <- caretFuncs ctrl.rcrsive.I1.mars <- rfeControl(method = "repeatedCV", |
Adding to a closed issue is not likely to get a response (especially since this seems unrelated to the issue that was discussed here). Most developers triage open issues and these comments fall between the cracks since nobody is looking at them. If you question is about having multivariate outcomes, If not, please start a new issue and follow the issue template to help get this answered. Referencing a data set that we don't have access to doesn't help. |
As reported on SO (http://stackoverflow.com/questions/39418075/r-caret-rfe-nnet-undefined-columns-selected):
I am running into problems when applying recursive feature selection to nnet models with caret::rfe; I get the following error message:
The actual task is more complex than the following example, but I am confident that this is a similar problem:
I know this error can occur when trying to select more features than there are available in x (e.g. see http://stats.stackexchange.com/questions/18362/odd-error-with-caret-function-rfe), but this does not seem to be the problem here. I also ran very similar calls in earlier versions of caret, without this problem occurring.
I use R 3.3.1 and caret 6.0.71.
Thank you very much for your help.
EDIT: I went through the archived versions of caret and found that the example code is working in caret versions <= 6.0.62.
The text was updated successfully, but these errors were encountered: