Cross-validate a bagged tree model in caret
Use caret::train()
with the "treebag" method to perform cross-validation. Train one model maximizing accuracy and one maximizing AUC.
This exercise is part of the course
Machine Learning with Tree-Based Models in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
