C2_W3_Lab 1_Model evaluation & Selection_Query

:point_up_2:t2: While scaling the Test set examples
why did it use the Training set scaled data?

Kindly go through the code in the above screenshot to understand my query.

The model was trained using the scaled training set.

So to make predictions using the model, you have to scale the test set using the same scaling values.

The scaler is basically the transformation function for data fitting, it need be same for all sets used in the process as @TMosh points out.