October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to generate a classification model for the telecom churn dataset:
> install.packages("adabag")
> library(adabag)
> set.seed(2)
> churn.bagging = bagging(churn ~ ., data=trainset, mfinal=10)
> churn.bagging$importance Output: international_plan number_customer_service_calls 10.4948380 16.4260510 number_vmail_messages total_day_calls 0.5319143 0.3774190 total_day_charge total_day_minutes 0.0000000 28.7545042 total_eve_calls ...
Read now
Unlock full access