Last answered:

11 Aug 2023

Posted on:

10 Aug 2023

0

Resolved: Standard Scaler usage

Hi, why to create another instance of the standardScaler here? should'nt we use the standar scaler that we fit on the training data and use it to transform the x inputs in the nan dataframe? 

1 answers ( 1 marked as helpful)
Instructor
Posted on:

11 Aug 2023

0

Hi Khader!

Thanks for reaching out!

Typically, in a real-world scenario, we would use the same StandardScaler instance that was fit on the training data to transform any new or additional data to maintain consistency. In this instance, we initialized another StandardScaler primarily for educational purposes, to reinforce the process of applying it.

Thanks for pointing it out!

Best,

Ivan

Submit an answer