Which preprocessing step is required to prevent data leakage when using cross-validation?

Data Science Medium

Data Science — Medium

Which preprocessing step is required to prevent data leakage when using cross-validation?

Key points

  • Prevent information leakage from test sets
  • Fit transformers only on training data
  • Use Pipelines to automate fold-specific scaling

Ready to go further?

Related questions