What is the purpose of stratified sampling in cross-validation?
- A Preserving the class distribution in each fold
- B Reducing computation
- C Removing outliers
- D Increasing the sample size
Answer
Preserving the class distribution in each fold
With rare positive classes, a random fold may contain very few or no positives, making the fold's metrics meaningless.





