DataPredict

API Reference - Optimizers - Gravity

Constructors

new()

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

Parameters:

Returns:

Functions

setInitialStepSize()

Gravity:setDecayRate(initialStepSize: number)

Parameters:

setMovingAverage()

Gravity:setDecayRate(movingAverage: number)

Parameters:

reset()

Reset optimizer’s stored values (excluding the parameters).

Gravity:reset()

Inherited From