Applying CV to Decision Trees

Apply K-Fold cross-validation to decision trees.

Chapter Goals:

  • Apply K-Fold cross-validation to a decision tree

A. Decision tree depth

We've previously discussed cross-validation for tuning hyperparameters such as the α value for regularized regression. For decision trees, we can tune the tree's maximum depth hyperparameter (max_depth) by using K-Fold cross-validation.

K-Fold cross-validation gives an accurate measurement of how good the decision tree is for the dataset. ...

Access this course and 1400+ top-rated courses and projects.