To scale the training set with its own mean and inverse std i used:
scaledTrainx = preprocessing.scale(trainx)
However, this won't work for the test data as:
scaledTrainx = preprocessing.scale(testx)
Will scale the test data based on its own mean and STD instead of the training set's mean and std, correct?
If so, how do i scale the test set using the training mean and std?