Here we are calculating the mean of training data and using that mean we are normalizing both training data and test data

So, my question is can we use the mean of training data to normalize the test Data?

means = np.mean(trainData, axis=0)stds = np.std(trainData, axis=0)trainData = (trainData - means)/stdstestData = (testData - means)/stds