October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to retrieve the minimum estimation errors by performing cross-validation with the bagging method:
> churn.baggingcv = bagging.cv(churn ~ ., v=10, data=trainset, mfinal=10)
> churn.baggingcv$confusion
Output
Observed Class
Predicted Class yes no
no 100 1938
yes 242 35
> churn.baggingcv$error
Output
[1] 0.05831533
Read now
Unlock full access