AI Features

Cross-Validation

Learn about K-Fold cross-validation and why it's used.

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 ...

Ask