Machine Learning, Model Selection, Hyperparameter Tuning, Learning Curve, Cross Validation.
should be done inside the (inner) CV loop [2]. In contrast, unsupervised preprocessing such as scaling can be done prior to cross-validation. If we ignore this advice, we might get an overly optimistic performance estimate, since setting aside data for validation purposes after relevant features