public class TeacherSynapse extends AbstractTeacherSynapse
Modifier and Type | Field and Description |
---|---|
protected double |
GlobalError
The error being calculated for the current epoch.
|
protected static ILogger |
log
Logger
|
currEpoch, desired, error, lastErrorPatternReady, net
Constructor and Description |
---|
TeacherSynapse() |
Modifier and Type | Method and Description |
---|---|
double |
calculateError(double aDesired,
double anOutput,
int anIndex)
Calculates the error to be backpropaged for a single output neuron.
|
double |
calculateGlobalError()
This method is called after an epoch finished and the global error should
be calculated.
|
void |
fwdPut(Pattern pattern)
Method to put a pattern forward to the next layer
|
backward, check, constructErrorPattern, epochFinished, forward, fwdGet, getDesired, getLastErrorPattern, getSeenPatterns, incSeenPatterns, init, isFirstTime, isLastErrorPatternReady, netStoppedError, pushError, readResolve, reset, resetInput, revGet, revPut, setArrays, setDesired, setDimensions, setFirstTime, setInputDimension, setMonitor, setSeenPatterns, stopTheNet
addNoise, canCountSteps, fwdPattern_consume, fwdPattern_produce, getCount, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getRevLock, getSynapseNameSafely, getWeights, initLearner, InspectableTitle, Inspections, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, revPattern_consume, revPattern_produce, setEnabled, setIgnoreBefore, setInputFull, setLearningRate, setLoopBack, setMomentum, setName, setOutputDimension, setOutputFull, setWeights, warnLogger, warnLogger
protected static final ILogger log
protected transient double GlobalError
public double calculateError(double aDesired, double anOutput, int anIndex)
AbstractTeacherSynapse
calculateError
in class AbstractTeacherSynapse
aDesired
- the desired outputanOutput
- the actual output of a single neuronanIndex
- the index of the output neuronpublic double calculateGlobalError()
AbstractTeacherSynapse
calculateGlobalError
in class AbstractTeacherSynapse
public void fwdPut(Pattern pattern)
OutputPatternListener
fwdPut
in interface OutputPatternListener
fwdPut
in class AbstractTeacherSynapse
pattern
- neural.engine.PatternSubmit Feedback to pmarrone@users.sourceforge.net