AdaGrad

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.

Class Constructor

Constructs a new AdaGrad optimizer.

Argument Type Description
learning_rate float=0.001 Learning rate .
epscut float=1e-07 Small cutoff.

Examples

Simple AdaDelta optimizer.

>>> from netket.optimizer import AdaGrad
>>> op = AdaGrad()

Class Methods

reset

Member function resetting the internal state of the optimizer.