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, stopTheNetaddNoise, 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, warnLoggerprotected static final ILogger log
protected transient double GlobalError
public double calculateError(double aDesired,
double anOutput,
int anIndex)
AbstractTeacherSynapsecalculateError in class AbstractTeacherSynapseaDesired - the desired outputanOutput - the actual output of a single neuronanIndex - the index of the output neuronpublic double calculateGlobalError()
AbstractTeacherSynapsecalculateGlobalError in class AbstractTeacherSynapsepublic void fwdPut(Pattern pattern)
OutputPatternListenerfwdPut in interface OutputPatternListenerfwdPut in class AbstractTeacherSynapsepattern - neural.engine.PatternSubmit Feedback to pmarrone@users.sourceforge.net