What is the purpose of StratifiedKFold cross-validation and when is it preferred over regular KFold?

Select the correct answer: Single Choice

Key points

  • StratifiedKFold maintains class distribution in folds
  • Prevents bias in evaluation for imbalanced datasets
  • Regular KFold may produce folds with different class ratios

Ready to go further?