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.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications