October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to retrieve the minimum estimation errors via cross-validation with the boosting method:
> churn.boostcv = boosting.cv(churn ~ ., v=10, data=trainset, mfinal=5,control=rpart.control(cp=0.01))
> churn.boostcv$confusion
Output
Observed Class
Predicted Class yes no
no 119 1940
yes 223 33
> churn.boostcv$error
Output
[1] 0.06565875
Read now
Unlock full access