Task
"Normalization" is used in two different senses in data work. Explain both, and say how each one affects a machine learning project.
Found a mistake in this question?
Report a problem2. Feature normalization (scaling)
-- Z-score in SQL (compute the statistics on training rows only in real pipelines)
SELECT id,
(amount - AVG(amount) OVER ()) / NULLIF(STDDEV_SAMP(amount) OVER (), 0) AS amount_z
FROM transactions;
Interview line: normalize the database for integrity, denormalize the feature table for speed, and scale features inside the ML pipeline.
Log in to mark questions completed and keep your streak.
Log inSpotted a mistake in these answers?
Report a problem