November 2016
Beginner to intermediate
959 pages
43h 46m
English
A margin is a measure of the certainty of classification. This method calculates the difference between the support of a correct class and the maximum support of an incorrect class. In this recipe, we will demonstrate how to calculate the margins of the generated classifiers.
You need to have completed the previous recipe by storing a fitted bagging model in the variables, churn.bagging and churn.predbagging. Also, put the fitted boosting classifier in both churn.boost and churn.boost.pred.
Perform the following steps to calculate the margin of each ensemble learner:
margins function to calculate the margins of the boosting classifiers:
> boost.margins = margins(churn.boost, ...Read now
Unlock full access