|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.engine.extenders.LearnerExtender
public abstract class LearnerExtender
This abstract class describes the methods that any learner extender must provide.
Constructor Summary | |
---|---|
LearnerExtender()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LearnerExtender()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |