Displaying 2 results from an estimated 2 matches for "accex".
Did you mean:
acces
2010 Mar 24
0
how to solve error in precict( ) while using with rpart?
Hello,
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 pre...
2010 Mar 24
0
R-help ordinal regression
...> 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,
> t...