public abstract class LearnerExtender
extends java.lang.Object
Constructor and Description |
---|
LearnerExtender() |
Modifier and Type | Method and Description |
---|---|
protected ExtendableLearner |
getLearner()
Gets the learner this object is extending.
|
boolean |
isEnabled()
Checks if the learner extender is enabled.
|
abstract void |
postBiasUpdate(double[] currentGradientOuts)
Gives extenders a change to do some post-computing after the
biases are updated.
|
abstract void |
postWeightUpdate(double[] currentPattern,
double[] currentInps)
Gives extenders a change to do some post-computing after the
weights are updated.
|
abstract void |
preBiasUpdate(double[] currentGradientOuts)
Gives extenders a change to do some pre-computing before the
biases are updated.
|
abstract void |
preWeightUpdate(double[] currentPattern,
double[] currentInps)
Gives extenders a change to do some pre-computing before the
weights are updated.
|
void |
setEnabled(boolean aMode)
Sets the mode of this extender.
|
void |
setLearner(ExtendableLearner aLearner)
Sets the learner.
|
public void setLearner(ExtendableLearner aLearner)
aLearner
- the learner this object is extending.protected ExtendableLearner getLearner()
public boolean isEnabled()
public void setEnabled(boolean aMode)
aMode
- true for enabled, false for disabled.public abstract void preBiasUpdate(double[] currentGradientOuts)
currentGradientOuts
- the back propagated gradients.public abstract void postBiasUpdate(double[] currentGradientOuts)
currentGradientOuts
- the back propagated gradients.public abstract void preWeightUpdate(double[] currentPattern, double[] currentInps)
currentPattern
- the back propagated gradients.currentInps
- the forwarded input.public abstract void postWeightUpdate(double[] currentPattern, double[] currentInps)
currentPattern
- the back propagated gradients.currentInps
- the forwarded input.Submit Feedback to pmarrone@users.sourceforge.net