public class Sgd extends Object implements GradientUpdater
Modifier and Type | Class and Description |
---|---|
static class |
Sgd.SgdAggregator |
Constructor and Description |
---|
Sgd(double learningRate) |
Modifier and Type | Method and Description |
---|---|
GradientUpdaterAggregator |
getAggregator(boolean addThis)
Get a GradientUpdaterAggregator.
|
INDArray |
getGradient(INDArray gradient,
int iteration)
Modify the gradient
to be an update
|
void |
update(Object... args)
update(learningRate,momentum)
|
public void update(Object... args)
GradientUpdater
update
in interface GradientUpdater
public INDArray getGradient(INDArray gradient, int iteration)
GradientUpdater
getGradient
in interface GradientUpdater
gradient
- the gradient to modifypublic GradientUpdaterAggregator getAggregator(boolean addThis)
GradientUpdater
getAggregator
in interface GradientUpdater
addThis
- If true: return a GradientUpdaterAggregator with the GradientUpdater already added.
If false: return an empty (uninitialized) GradientUpdaterAggregatorCopyright © 2016. All Rights Reserved.