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)
question from:https://stackoverflow.com/questions/65908650/ann-why-scaler-is-not-fitted-on-test-data