I'm trying to understand how exactly the standard scaler works. Currently I'm having trouble understanding exactly why we only fit/transform the training data and not testing. From the research that I've done, apparently we dont want the model to learn any information about the testing data, but I'm not at all understanding how those 2 are connected. Why does fitting the testing data affect the model at all. For reference I'm practicing building an MLP model with the load_digits dataset from sklearn.
Also any clarifications about the fit, transform adn fit_transform functions would be great since I'm still trying to wrap my head around these concepts.
Thank you
Also any clarifications about the fit, transform adn fit_transform functions would be great since I'm still trying to wrap my head around these concepts.
Thank you