Skip to content
Advertisement

Tag: data-preprocessing

How do I make sure GridSearchCV first does the cross split and then the imputing?

I have a GridSearchCV, with a pipeline that looks something like this: my GridSearchCV looks like this: with Cross Validation = 5 So, how do I ensure that I split the data first, and then impute in the most frequent? Answer GridSearchCV will run roughly like this: You can be sure that SimpleImputer and StandardScaler will do .fit() and .transform()

Advertisement