Gridsearch mith multi preprocessors

I can’t get the test score among the different n-neighbors
what should i do ?

You don’t have to make an external for loop but instead pass your list of preprocessor as a parameter of the param_grid of your grid-search.