Training data, validation, and leakage

Which split should determine the mean and standard deviation?

Examples

Worked example

Input
You standardize numeric columns before training.
Expected output
The training split.

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

Fit the preprocessing only on training, then apply the same learned transformation to validation and test data.

Back to the lesson