Why it is trained only on train data? Scaler fitting doesn't matter only the regression / classification split matters?
sc_X = StandardScaler() X_trainscaled=sc_X.fit_transform(X_train) X_testscaled=sc_X.transform(X_test)
2.1m questions
2.1m answers
60 comments
57.0k users