public class OnlineModeExtender extends UpdateWeightExtender
| Constructor and Description |
|---|
OnlineModeExtender()
Creates a new instance of OnlineExtender
|
| Modifier and Type | Method and Description |
|---|---|
void |
postBiasUpdate(double[] currentGradientOuts)
Gives extenders a change to do some post-computing after the
biases are updated.
|
void |
postWeightUpdate(double[] currentPattern,
double[] currentInps)
Gives extenders a change to do some post-computing after the
weights are updated.
|
void |
preBiasUpdate(double[] currentGradientOuts)
Gives extenders a change to do some pre-computing before the
biases are updated.
|
void |
preWeightUpdate(double[] currentPattern,
double[] currentInps)
Gives extenders a change to do some pre-computing before the
weights are updated.
|
boolean |
storeWeightsBiases()
Checks if the weights or biases will be stored this cycle.
|
void |
updateBias(int j,
double aDelta)
Updates a bias with the calculated delta value.
|
void |
updateWeight(int j,
int k,
double aDelta)
Updates a weight with the calculated delta value.
|
getLearner, isEnabled, setEnabled, setLearnerpublic OnlineModeExtender()
public void postBiasUpdate(double[] currentGradientOuts)
LearnerExtenderpostBiasUpdate in class LearnerExtendercurrentGradientOuts - the back propagated gradients.public void postWeightUpdate(double[] currentPattern,
double[] currentInps)
LearnerExtenderpostWeightUpdate in class LearnerExtendercurrentPattern - the back propagated gradients.currentInps - the forwarded input.public void preBiasUpdate(double[] currentGradientOuts)
LearnerExtenderpreBiasUpdate in class LearnerExtendercurrentGradientOuts - the back propagated gradients.public void preWeightUpdate(double[] currentPattern,
double[] currentInps)
LearnerExtenderpreWeightUpdate in class LearnerExtendercurrentPattern - the back propagated gradients.currentInps - the forwarded input.public void updateBias(int j,
double aDelta)
UpdateWeightExtenderupdateBias in class UpdateWeightExtenderj - the index of the bias to update.aDelta - the calculated delta value.public void updateWeight(int j,
int k,
double aDelta)
UpdateWeightExtenderupdateWeight in class UpdateWeightExtenderj - the input index of the weight to update.k - the output index of the weight to update.aDelta - the calculated delta value.public boolean storeWeightsBiases()
UpdateWeightExtenderstoreWeightsBiases in class UpdateWeightExtenderSubmit Feedback to pmarrone@users.sourceforge.net