public abstract class BaseUpdater extends Object implements Updater
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseUpdater.UpdaterAggregatorImpl |
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.nd4j.linalg.learning.GradientUpdater> |
updaterForVariable |
Constructor and Description |
---|
BaseUpdater() |
Modifier and Type | Method and Description |
---|---|
void |
checkSchedules(Layer layer,
int iteration,
String param)
Update learningRate and/or momentum if schedules exist
|
boolean |
equals(Object other) |
abstract void |
init() |
abstract org.nd4j.linalg.learning.GradientUpdater |
init(String variable,
org.nd4j.linalg.api.ndarray.INDArray gradient,
Layer layer) |
void |
postApply(Layer layer,
org.nd4j.linalg.api.ndarray.INDArray gradient,
String param,
int miniBatchSize)
Apply the regularization
|
void |
preApply(Layer layer,
Gradient gradient,
int iteration)
Apply gradient normalization: scale based on L2, clipping etc.
|
void |
update(Layer layer,
Gradient gradient,
int iteration,
int miniBatchSize)
Updater: updates the model
|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAggregator
public void update(Layer layer, Gradient gradient, int iteration, int miniBatchSize)
Updater
public void postApply(Layer layer, org.nd4j.linalg.api.ndarray.INDArray gradient, String param, int miniBatchSize)
layer
- gradient
- param
- public void checkSchedules(Layer layer, int iteration, String param)
public void preApply(Layer layer, Gradient gradient, int iteration)
public abstract void init()
public abstract org.nd4j.linalg.learning.GradientUpdater init(String variable, org.nd4j.linalg.api.ndarray.INDArray gradient, Layer layer)
Copyright © 2016. All Rights Reserved.