20.22 Complexity Parameter Table
We can look at the raw data to have a more precise and detailed view of the data. Here we only list specific rows from the complexity parameter table.
## CP nsplit rel error xerror xstd
## 1 1.667741e-01 0 1.0000000 1.0000000 0.003652405
## 2 2.773064e-02 1 0.8332259 0.8330901 0.003408572
## 3 4.577931e-03 3 0.7777646 0.7789356 0.003319078
## 4 3.869391e-03 7 0.7594529 0.7728430 0.003308657
## 5 3.614826e-03 9 0.7517141 0.7644084 0.003294108
## 22 4.582174e-04 52 0.7075894 0.7200292 0.003215150
## 23 4.539746e-04 54 0.7066730 0.7201819 0.003215429
## 24 4.242753e-04 60 0.7037879 0.7188412 0.003212979
## 25 3.988188e-04 62 0.7029394 0.7172799 0.003210121
## 26 3.563913e-04 64 0.7021417 0.7160410 0.003207850
## 27 3.507343e-04 71 0.6996470 0.7156676 0.003207165
## 28 3.309348e-04 74 0.6985948 0.7156167 0.003207071
## 29 3.224493e-04 78 0.6972711 0.7149549 0.003205856
## 80 7.636956e-05 632 0.6248897 0.7071652 0.003191478
## 81 7.354106e-05 719 0.6176770 0.7074876 0.003192076
## 82 7.212681e-05 735 0.6163702 0.7074876 0.003192076
## 83 7.127826e-05 740 0.6159799 0.7073349 0.003191793
%$
See how the relative error continues to decrease as the tree becomes more complex, but the cross validated error decreases and then starts to increase! We might choose a sensible value of from this table.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0