Creates a new optimizer object. If there are no parameters given for that particular argument, then that argument will use default value.
Gravity.new(initialStepSize: number, movingAverage: number): OptimizerObject
initialStepSize: The value to set the initial velocity during the first iteration.
movingAverage: The value that controls the smoothing of gradients during training.
Gravity:setDecayRate(initialStepSize: number)
Gravity:setDecayRate(movingAverage: number)
Reset optimizer’s stored values (excluding the parameters).
Gravity:reset()