What I have understood in CARET train() method is that train() itself does the model selection and tune the parameter. (please correct me if I am wrong). That was my first motivation to select this package and method for fitting the model. And use the parameter to e1071 svm() method and compare the result.
fit1<-train(train1,as.factor(trainset[,ncol(trainset)]),"svmpoly",trControl = trainControl((method = "cv"),10,verboseIter = F),tuneLength=3) -- View this message in context: http://r.789695.n4.nabble.com/Train-error-subscript-out-of-bonds-tp3234510p3237800.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.