sample weights in grid search