AdaGrad Optimizer. In many cases, in Sgd the learning rate should decay as a function of training iteration to prevent overshooting as the optimum is approached. AdaGrad is an adaptive learning rate algorithm that automatically scales the learning rate with a sum over past gradients. The vector is initialized to zero. Given a stochastic estimate of the gradient of the cost function , the updates for and the parameter are
AdaGrad has been shown to perform particularly well when the gradients are sparse, but the learning rate may become too small after many updates because the sum over the squares of past gradients is cumulative.
Constructs a new
|learning_rate||float=0.001||Learning rate .|
Simple AdaDelta optimizer.
>>> from netket.optimizer import AdaGrad >>> op = AdaGrad()
Member function resetting the internal state of the optimizer.