I use the default parameters in every example now. Usually, gradient descent should stop based on the gradient norm or objective function difference.