October 2017
Beginner to intermediate
572 pages
26h 1m
English
In addition to using the boosting function in the gbm package, one can also use the mboost package to perform classifications with the gradient boosting method:
> install.packages("mboost")
> library(mboost)
> trainset$churn = ifelse(trainset$churn == "yes", 1, 0)
> trainset$voice_mail_plan = NULL
> trainset$international_plan = NULL
> churn.mboost = mboost(churn ~ ., data=trainset, control ...
Read now
Unlock full access