SpinTheMic
Pro

Explain it in 60 seconds

Selection bias from feature selection

Machine Learning · Feature Engineering · Experienced

Why can feature selection done before cross-validation produce misleading results?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Selecting features using all data leaks information.
  • Selected features fit noise in the full dataset.
  • CV score becomes optimistic, especially with many features and few rows.
  • Perform selection inside each training fold (pipeline).
  • Final model: rerun selection on full training data.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics