public class Adam extends Object implements Serializable, GradientUpdater
| Modifier and Type | Class and Description |
|---|---|
static class |
Adam.AdamAggregator |
| Constructor and Description |
|---|
Adam(double alpha) |
Adam(double alpha,
double beta1,
double beta2) |
Adam(double alpha,
double beta1,
double beta2,
double epsilon) |
| Modifier and Type | Method and Description |
|---|---|
GradientUpdaterAggregator |
getAggregator(boolean addThis)
Get a GradientUpdaterAggregator.
|
INDArray |
getGradient(INDArray gradient,
int iteration)
Calculate the update based on the given gradient
|
void |
update(Object... args)
update(learningRate,momentum)
|
public Adam(double alpha,
double beta1,
double beta2,
double epsilon)
public Adam(double alpha,
double beta1,
double beta2)
public Adam(double alpha)
public void update(Object... args)
GradientUpdaterupdate in interface GradientUpdaterpublic INDArray getGradient(INDArray gradient, int iteration)
getGradient in interface GradientUpdatergradient - the gradient to get the update foriteration - public GradientUpdaterAggregator getAggregator(boolean addThis)
GradientUpdatergetAggregator in interface GradientUpdateraddThis - If true: return a GradientUpdaterAggregator with the GradientUpdater already added.
If false: return an empty (uninitialized) GradientUpdaterAggregatorCopyright © 2016. All Rights Reserved.