# mx.nd.multi.sgd.update¶

## Description¶

Update function for Stochastic Gradient Descent (SDG) optimizer.

weight = weight - learning_rate * (gradient + wd * weight)

## Arguments¶

Argument

Description

data

NDArray-or-Symbol[].

Weights

lrs

tuple of <float>, required.

Learning rates.

wds

tuple of <float>, required.

Weight decay augments the objective function with a regularization term that penalizes large weights. The penalty scales with the square of the magnitude of each weight.

float, optional, default=1.

float, optional, default=-1.