I am working on a project to optimize my gridsearch model, I have tried the below setup
def model_pipeline_improved(): pipeline = Pipeline([ (