ptrblck:

Have a look at the StandardScaler from scikit-learn.
Don’t forget to fit it on the training data and just transform the test data. 


Oh yes! I tried this. Wouldn’t batch norm after data layer have similar effect?