![]() |
Data Science Desktop Survival Guide
by Graham Williams |
![]() |
|||
Complexity Parameter Plot |
The plotcp() plots the cross-validation results. Here we see a set of possible cost-complexity prunings of the tree. We might choose to prune using the leftmost complexity parameter which has a mean below the horizontal line.
plotcp(model)
![]()
|