org.joone.engine.learning
Class ComparisonSynapse
- java.lang.Object
-
- org.joone.engine.Synapse
-
- org.joone.engine.learning.ComparisonSynapse
-
- All Implemented Interfaces:
- java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable
public class ComparisonSynapse extends Synapse
Final element of a neural network; it permits to compare the outcome of the neural net and the input patterns from a StreamInputSynapse connected to the 'desired' property. Used by the ComparingSynapse object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ComparisonSynapse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.TreeSetcheck()Base for check messages.PatternfwdGet()Returns the pattern coming from the previous layer during the recall phasevoidfwdPut(Pattern pattern)Method to put a pattern forward to the next layerStreamInputSynapsegetDesired()Inserire qui la descrizione del metodo.intgetOutputDimension()Returns the output dimension of the synapse.voidinit()Synapse's initialization.voidnetStoppedError(NeuralNetEvent e, java.lang.String error)voidreset()reset of the input synapsevoidresetInput()PatternrevGet()Returns the error pattern coming from the next layer during the training phasevoidrevPut(Pattern pattern)Method to put an error pattern backward to the previous layerbooleansetDesired(StreamInputSynapse newDesired)Set the input data stream containing desired training datavoidsetInputDimension(int newInputDimension)Sets the input dimension of the synapsevoidsetMonitor(Monitor newMonitor)Sets the Monitor object of the Teacher Synapse.-
Methods inherited from class org.joone.engine.Synapse
addNoise, canCountSteps, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getWeights, initLearner, InspectableTitle, Inspections, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, setEnabled, setIgnoreBefore, setInputFull, setLearningRate, setLoopBack, setMomentum, setName, setOutputDimension, setOutputFull, setWeights
-
-
-
-
Method Detail
-
fwdGet
public Pattern fwdGet()
Description copied from interface:InputPatternListenerReturns the pattern coming from the previous layer during the recall phase- Specified by:
fwdGetin interfaceInputPatternListener- Overrides:
fwdGetin classSynapse- Returns:
- neural.engine.Pattern
-
fwdPut
public void fwdPut(Pattern pattern)
Description copied from interface:OutputPatternListenerMethod to put a pattern forward to the next layer- Specified by:
fwdPutin interfaceOutputPatternListener- Overrides:
fwdPutin classSynapse- Parameters:
pattern- neural.engine.Pattern
-
getDesired
public StreamInputSynapse getDesired()
Inserire qui la descrizione del metodo. Data di creazione: (11/04/00 1.12.04)- Returns:
- neural.engine.StreamInputSynapse
-
revGet
public Pattern revGet()
Description copied from interface:OutputPatternListenerReturns the error pattern coming from the next layer during the training phase- Specified by:
revGetin interfaceOutputPatternListener- Overrides:
revGetin classSynapse- Returns:
- neural.engine.Pattern
-
revPut
public void revPut(Pattern pattern)
Description copied from interface:InputPatternListenerMethod to put an error pattern backward to the previous layer- Specified by:
revPutin interfaceInputPatternListener- Overrides:
revPutin classSynapse- Parameters:
pattern- neural.engine.Pattern
-
setDesired
public boolean setDesired(StreamInputSynapse newDesired)
Set the input data stream containing desired training data- Parameters:
newDesired- neural.engine.StreamInputSynapse
-
resetInput
public void resetInput()
-
setInputDimension
public void setInputDimension(int newInputDimension)
Description copied from class:SynapseSets the input dimension of the synapse- Specified by:
setInputDimensionin interfaceOutputPatternListener- Overrides:
setInputDimensionin classSynapse- Parameters:
newInputDimension- int
-
check
public java.util.TreeSet check()
Description copied from class:SynapseBase for check messages. Subclasses should call this method from thier own check method.- Specified by:
checkin interfaceNeuralElement- Overrides:
checkin classSynapse- Returns:
- validation errors.
- See Also:
InputPaternListener,OutputPaternListener
-
reset
public void reset()
reset of the input synapse- Specified by:
resetin interfaceInputPatternListener- Overrides:
resetin classSynapse
-
setMonitor
public void setMonitor(Monitor newMonitor)
Sets the Monitor object of the Teacher Synapse. Adds this Techer Synapse as a NeuralNetListener so that it can reset after a critical error.- Specified by:
setMonitorin interfaceNeuralElement- Overrides:
setMonitorin classSynapse- Parameters:
newMonitor- neural.engine.Monitor
-
netStoppedError
public void netStoppedError(NeuralNetEvent e, java.lang.String error)
-
getOutputDimension
public int getOutputDimension()
Returns the output dimension of the synapse.- Specified by:
getOutputDimensionin interfaceInputPatternListener- Specified by:
getOutputDimensionin interfaceLearnableSynapse- Overrides:
getOutputDimensionin classSynapse- Returns:
- int
-
init
public void init()
Description copied from class:SynapseSynapse's initialization. It needs to be invoked at the starting of the neural network It's called within the Layer.init() method- Specified by:
initin interfaceNeuralElement- Overrides:
initin classSynapse
-
-
DataMelt 3.0 © DataMelt by jWork.ORG