grid regularized SGD