1from sklearn.model_selection import GridSearchCV
2from sklearn.model_selection import KFold
3
4# Regressor
5lrg = LinearRegression()
6
7#Param Grid
8param_grid=[{
9 'normalize':[True, False]
10}]
11
12# Grid Search with KFold, not shuffled in this example
13experiment_gscv = GridSearchCV(lrg, param_grid, \
14 cv=KFold(n_splits=4, shuffle=False), \
15 scoring='neg_mean_squared_error')