Understanding cross-validation properly

Asked by Dr. Amanda Thompson Feb 15, 2025 intermediate 638 views
38

I know I should use cross-validation to evaluate my model, but I'm confused about:

  1. What's the difference between k-fold and stratified k-fold?
  2. Should I do cross-validation before or after feature selection?
  3. How do I cross-validate when doing hyperparameter tuning?

What's the right workflow to avoid data leakage?

Solutions

0 answers

No solutions yet

Be the first to help solve this problem!