Question: Pruning a tree is important to ensure that the model has not overfit the data. Following the example provided in the book, prune the model
Pruning a tree is important to ensure that the model has not overfit the data. Following the example provided in the book, prune the model created in Question to minimize
the crossvalidation error. How did the tree change? How many levels does the pruned tree include? What are the most important variables and their relative importance according to the pruned tree model?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
