📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

Why is scaling fitted on training data only?

A. Because validation data needs no scaling
B. Because test data cannot be scaled at all
C. So the test set remains truly unseen and the estimate stays honest ✅
D. Because scaling only works on small data

Correct Answer: C. So the test set remains truly unseen and the estimate stays honest

Explanation

Fitting a scaler on all data leaks test-set statistics into training; fit on train, then apply the same transform to test.