[R] caret package, how can I deal with RFE+SVM wrong message?
dluthm at yeah.net
Tue Mar 23 09:42:00 CET 2010
I am learning caret package, and I want to use the RFE to reduce the
feature. I want to use RFE coupled Random Forest (RFE+FR) to complete this
task. As we know, there are a number of pre-defined sets of functions, like
random Forest(rfFuncs), however,I want to tune the parameters (mtr) when
RFE, and then I write code below, but there is something wrong message, How
can I deal with it?
Loading required package: class
Attaching package: 'class'
The following object(s) are masked from package:reshape :
Error in varImp.randomForest(object$finalModel, ...) :
subscript out of bounds
In addition: Warning message:
package 'e1071' was built under R version 2.10.1
At the same time, If I want to use RFE+SVM, RFE+nnet, and so on ,how can I
do? I have try RFE+SVM, also wrong message:> set.seed(1)
Fitting: sigma=0.009246713, C=0.1
Fitting: sigma=0.009246713, C=1
Fitting: sigma=0.009246713, C=10
Fitting: sigma=0.009246713, C=100
Fitting: sigma=0.009246713, C=1000
Error in rfeControl$functions$rank(fitObject, .x, y) :
need importance columns for each class
View this message in context: http://n4.nabble.com/caret-package-how-can-I-deal-with-RFE-SVM-wrong-message-tp1678800p1678800.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help