Predict Titanic Survival- Use of StandardScaler.fit_transform() vs StandardScaler.transform()

In the “Predict Titanic Survival” exercise step 8, why is StandardScaler.fit_transform() used for the training features, while StandardScaler.transform() is used for the test features?

3 Likes

I was wondering about this too.