DataPredict

API Reference - Models - GradientMethodBaseModel

The base model for all machine and deep learning models that uses gradient descent

Constructors

new()

Creates a new gradient method base model.

GradientMethodBaseModel.new(): GradientMethodBaseModelObject

Functions

setAreGradientsSaved()

GradientMethodBaseModel:setAreGradientSaved(option: boolean)

Parameters:

setAutoResetOptimizers()

Set if the optimizers resets at the end of iterations.

BaseModel:setAutoResetOptimizers(option: boolean)

Parameters:

getGradients()

GradientMethodBaseModel:getGradients(doNotDeepCopy: boolean): any

Parameters:

Returns:

setGradients()

GradientMethodBaseModel:setGradients(Gradients: any, doNotDeepCopy: boolean)

Parameters:

clearGradients()

Clears stored gradients inside the gradient method base model.

GradientMethodBaseModel:clearGradients()