Displaying 1 result from an estimated 1 matches for "tune_best".
2011 Jan 24
5
Train error:: subscript out of bonds
...<-train(train1,as.factor(trainset[,ncol(trainset)]),"svmpoly",trControl
= trainControl((method = "cv"),10,verboseIter = F),tuneLength=3)
pred<-predict(fit1,test_t)
t_train[[i]]<-table(predicted=pred,observed=testset[,ncol(testset)])
tune_result[[i]]<-fit1$results;
tune_best<-fit1$bestTune;
scale1[i]<-tune_best[[3]]
degree[i]<-tune_best[[2]]
c1[i]<-tune_best[[1]]
}
--
View this message in context: http://r.789695.n4.nabble.com/Train-error-subscript-out-of-bonds-tp3234510p3234510.html
Sent from the R help mailing list archive at Nabble.com.