Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Last answered:

23 Aug 2024

Posted on:

17 Aug 2024

0

Resolved: StandardScaler of features

why did you standarized all inputs instead of just using the train data.
1 answers ( 1 marked as helpful)
Instructor
Posted on:

23 Aug 2024

0
Hi Doaa!

Thanks for reaching out.
The main idea is to align the train data distribution with the one of the test data; the transformation of both the train and test data must be consistent. Otherwise, if you only standardize the training data and you don't standardize the test data, you won't be able to generalize, i.e. your model will not perform well when applied to unseen data, wihch is the primary goal of creaeting an ML model.
Hope this helps.
Best,
Martin

Submit an answer