October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to classify the telecom churn dataset with the boosting method:
> set.seed(2)
> churn.boost = boosting(churn ~.,data=trainset,mfinal=10, coeflearn="Freund", boos=FALSE , control=rpart.control(maxdepth=3))
> churn.boost.pred = predict.boosting(churn.boost,newdata=testset)
> churn.boost.pred$confusion
Output
Observed Class
Predicted Class yes no
no 41 858
yes 100 19
> churn.boost.pred$error ...
Read now
Unlock full access