October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to estimate the prediction errors of each classification method:
> churn.bagging= errorest(churn ~ ., data = trainset, model = bagging)
> churn.bagging
Output
Call:
errorest.data.frame(formula = churn ~ ., data = trainset, model = bagging)
10-fold cross-validation estimator of misclassification error
Misclassification error: 0.0583
> install.packages("ada")
> library(ada)
> churn.boosting= errorest(churn ~ ., data = trainset, model = ada)
> churn.boosting
Output
Call:
errorest.data.frame(formula = churn ~ ., data = trainset, model = ada) 10-fold cross-validation estimator of misclassification ...Read now
Unlock full access