SpinTheMic
Pro

Interview practice question

Suspiciously high cross-validation scores

Machine Learning · ML Frameworks · Beginner

A colleague scaled and imputed the whole dataset before cross-validation and reports very high scores. What's wrong, and how do you fix it?

What a strong answer covers

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

  • Preprocessing on full data leaks test fold information.
  • Use Pipeline so preprocessing fits within each fold.
  • Also check target leakage features.
  • Re-run CV.
  • Use proper splitter (group/time).
Practise this topic

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

See all topics