Incorporated a grid search example from sklearn.