🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Evaluation and Tuning: all 10 questions

Quiz: Evaluation and Tuning · Question 9 of 10

Why is scaling the whole dataset before splitting it a form of data leakage?

Why is scaling the whole dataset before splitting it a form of data leakage?

  1. A.Scaling changes the labels
  2. B.It deletes rows
  3. C.It makes training slower
  4. D.The scaler learns the mean and spread from test rows, so test information leaks into training
Answer & explanation

Correct answer: The scaler learns the mean and spread from test rows, so test information leaks into training

Fit preprocessing on training data only; a Pipeline does this for you.

Can you get the rest right without peeking?

Take the timed Quiz: Evaluation and Tuning quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →