Chapter 4
Give Me a Number – Regression
Section 8
Performing k-Fold Cross-Validation and Leave-One-Out-Cross-Validation
The R implementation of some techniques, such as classification and regression trees, performs cross-validation out of the box to aid in model selection and to avoid overfitting. - Read the data - Show line numbers for discussion - For k fold cross validation→ k-fold cross-validation with k=5; for leave one out cross validation→ run leave-one-out-cross-validation