instead
@Deprecated public abstract class BaseUpdater extends Object implements Updater
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.nd4j.linalg.learning.GradientUpdater> |
updaterForVariable
Deprecated.
|
protected org.nd4j.linalg.api.ndarray.INDArray |
viewArray
Deprecated.
|
Constructor and Description |
---|
BaseUpdater()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
applyLrDecayPolicy(LearningRatePolicy decay,
Layer layer,
int iteration,
String variable)
Deprecated.
Update learning rate based on policy
|
void |
applyMomentumDecayPolicy(Layer layer,
int iteration,
String variable)
Deprecated.
Update momentum if schedule exist
|
Updater |
clone()
Deprecated.
|
boolean |
equals(Object other)
Deprecated.
|
org.nd4j.linalg.api.ndarray.INDArray |
getStateViewArray()
Deprecated.
|
int |
hashCode()
Deprecated.
|
abstract void |
init()
Deprecated.
|
abstract org.nd4j.linalg.learning.GradientUpdater |
init(String variable,
Layer layer)
Deprecated.
|
void |
postApply(Layer layer,
org.nd4j.linalg.api.ndarray.INDArray gradient,
String param,
int miniBatchSize)
Deprecated.
Apply the regularization
|
void |
preApply(Layer layer,
Gradient gradient,
int iteration)
Deprecated.
Apply gradient normalization: scale based on L2, clipping etc.
|
void |
setStateViewArray(Layer layer,
org.nd4j.linalg.api.ndarray.INDArray viewArray,
boolean initialize)
Deprecated.
Set the internal (historical) state view array for this updater
|
int |
stateSizeForLayer(Layer layer)
Deprecated.
Calculate and return the state size for this updater (for the given layer).
|
void |
update(Layer layer,
Gradient gradient,
int iteration,
int miniBatchSize)
Deprecated.
Updater: updates the model
|
protected Map<String,org.nd4j.linalg.learning.GradientUpdater> updaterForVariable
protected org.nd4j.linalg.api.ndarray.INDArray viewArray
public void setStateViewArray(Layer layer, org.nd4j.linalg.api.ndarray.INDArray viewArray, boolean initialize)
Updater
setStateViewArray
in interface Updater
layer
- Layer that this updater belongs toviewArray
- View arrayinitialize
- Whether to initialize the array or notpublic org.nd4j.linalg.api.ndarray.INDArray getStateViewArray()
getStateViewArray
in interface Updater
public int stateSizeForLayer(Layer layer)
Updater
stateSizeForLayer
in interface Updater
layer
- Layer that this updater belongs topublic 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 applyMomentumDecayPolicy(Layer layer, int iteration, String variable)
public void applyLrDecayPolicy(LearningRatePolicy decay, Layer layer, int iteration, String variable)
public void preApply(Layer layer, Gradient gradient, int iteration)
public abstract void init()
public abstract org.nd4j.linalg.learning.GradientUpdater init(String variable, Layer layer)
Copyright © 2016. All Rights Reserved.