search for: acc_find_cp

Displaying 2 results from an estimated 2 matches for "acc_find_cp".

2010 Mar 24
0
how to solve error in precict( ) while using with rpart?
...o, I am working with rpart function but geting some error in prediction. the same code works fine with iris dataset. but applying other dataset it doesn't work. sample code is given for reference. > acc_model<-rpart(V1~V2+V3+V4+V5+V6+V7+V8, data=accEx.train) > plotcp(acc_model) > acc_find_cp<-(acc_model$cptable)[,"CP"][which.min(acc_model$cptable[,"xerror"])] > acc_prune_model<-prune(acc_model,acc_find_cp) > acc_predict_tree<-predict(acc_prune_model,newdata=accEx.test, type="class") Error in predict.rpart(acc_prune_model, newdata = accEx.tes...
2010 Mar 24
0
R-help ordinal regression
...ror in > prediction. > the same code works fine with iris dataset. > > but applying other dataset it doesn't work. > sample code is given for reference. > > > acc_model<-rpart(V1~V2+V3+V4+V5+V6+V7+V8, > data=accEx.train) > > plotcp(acc_model) > > > acc_find_cp<-(acc_model$cptable)[,"CP"][which.min(acc_model$cptable[,"xerror"])] > > acc_prune_model<-prune(acc_model,acc_find_cp) > > > acc_predict_tree<-predict(acc_prune_model,newdata=accEx.test, > type="class") > Error in predict.rpart(acc_prune_m...