Data for machine learning · Question 58 of 60
A dataset is highly imbalanced (few fraud cases). How should the folds be formed in k-fold cross-validation?
1 answer is correct. Hard
Show answer
Answer
- B Randomly, often stratified, so that each fold is representative
Explanation
Data is usually distributed randomly across the folds, often stratified so that each class appears in each fold in the right proportion. This is especially important with small or imbalanced datasets.