Predictive Local Smoothness for Stochastic Gradient Methods