Cross-Validation
Learn about K-Fold cross-validation and why it's used.
We'll cover the following...
Chapter Goals:
- Learn about the purpose of cross-validation
- Implement a function that applies the K-Fold cross-validation algorithm to a model
A. Additional evaluation datasets
Sometimes, it's not enough to just have a single testing set for model evaluation. Having additional sets of data for evaluation gives us a more accurate measurement of how good the model is for the original dataset.
If the original dataset is big enough, we can actually split it into three subsets: training, testing, and validation. The validation set is about the same size as the testing set, and it is used for evaluating the model after training. The testing set is then used for final evaluation once the model is done training and ...