1 min readJul 10, 2020
When using MinMaxScaler to normalize your data, you fit to your training data and then apply the same scaler to your test data. Here are a couple of links that explain it more depth with examples: https://stackoverflow.com/questions/50565937/how-to-normalize-the-train-and-test-data-using-minmaxscaler-sklearn and see section 6.3.1.1 of the official scikit-learn documentation https://scikit-learn.org/stable/modules/preprocessing.html