WRITE · TRACE · UNDERSTAND

Train-only Standardization

Fit the centre and population deviation on training values only.

Your experiment

normalize(train, values) returns values standardized with the training mean and population standard deviation. train is nonempty. Use scale 1 for a constant column.

Python runs in your browser. Your draft stays on this device.

What to look for

Fit the centre and population deviation on training values only. Reuse both statistics for validation; a constant training column uses scale one.

Watch your code work

Ready to experiment

Write a solution or load the worked answer, then choose Trace & check.

Step through arrays, variables and training curves produced by your own Python.