SpinTheMic
Pro

Explain it in 60 seconds

Fit on training data only

Machine Learning · Feature Engineering · Beginner

Why must preprocessing steps be fitted only on training data?

What a strong answer covers

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

  • Fitting on all data leaks test information into training.
  • Applies to scaling, imputation, encoding, feature selection.
  • Leads to overly optimistic evaluation.
  • Use pipelines to apply steps correctly within cross-validation.
  • Same fitted transformers used in production.
Practise this topic

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

See all topics