public class SgdUpdater extends Object implements GradientUpdater
Constructor and Description |
---|
SgdUpdater(double lr) |
Modifier and Type | Method and Description |
---|---|
INDArray |
getGradient(INDArray gradient,
int iteration)
Modify the gradient
to be an update
|
double |
getLr() |
void |
setLr(double lr) |
public double getLr()
public void setLr(double lr)
public INDArray getGradient(INDArray gradient, int iteration)
GradientUpdater
getGradient
in interface GradientUpdater
gradient
- the gradient to modifyCopyright © 2015. All Rights Reserved.