October 2017
Beginner to intermediate
572 pages
26h 1m
English
In addition to using the boosting function in the adabag package, one can also use the caret package to perform a classification with the boosting method:
> library(mboost)
> install.packages("pROC")
> library(pROC)
> set.seed(2)
> ctrl = trainControl(method = "repeatedcv", repeats = 1, class Probs = TRUE, summaryFunction = twoClassSummary)
> ada.train = train(churn ~ ., data = trainset, method = "ada", metric = "ROC", trControl = ctrl)
> ada.train$result ...
Read now
Unlock full access