Displaying 1 result from an estimated 1 matches for "t_train".
Did you mean:
n_train
2011 Jan 24
5
Train error:: subscript out of bonds
...ies_test<-as.factor(testset[,ncol(testset)])
test_t<-test_t[,-(1)]
####
#CARET::TRAIN
####
fit1<-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-...