Why should you shuffle the dataset before partitioning it into k folds?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Explain why a dataset should be shuffled before it is split into k folds for cross-validation. Tests understanding of how ordered data skews fold distributions and the CV estimate, how stratification helps, and when shuffling rows causes leakage, as with time series and grouped data.