MODULO Machine Learning: Artificial Intelligence SagaTHEORY
Scale a numeric feature
Training temperatures range from 20 to 40 degrees. Scale 30 using (x − min) / (max − min), then apply the same transformation to a test day at 45 degrees.
Check your work
The scaled values are 0.5 and 1.25. Keep the training limits for both. Recomputing the range on the test period would change the meaning of a value the model learned during training.
