More on Pipelines — Applied Machine Learning in Python

PHOTO EMBED

Tue Oct 24 2023 20:21:06 GMT+0000 (Coordinated Universal Time)

Saved by @elham469

param_grid = [ # list of two dicts
    # first dict always uses MinMaxScaler
    {'scaler': [MinMaxScaler()],
     # two options for feature_range:
     'feature_range': [(0, 1), (-1, 1)]},
    # second dict always uses StandardScaler
    # there are no options that we're tuning
    {'scaler': [StandardScaler()]}   
]
content_copyCOPY

https://amueller.github.io/aml/01-ml-workflow/12-pipelines-gridsearch.html