org.joone.engine.learning
Class ComparingSynapse
- java.lang.Object
-
- org.joone.engine.learning.ComparingSynapse
-
- All Implemented Interfaces:
- java.io.Serializable, ComparingElement, NeuralElement, OutputPatternListener
public class ComparingSynapse extends java.lang.Object implements ComparingElement
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ComparingSynapse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanaddResultSynapse(OutputPatternListener listener)Adds an output synapse to which the result must be sentjava.util.TreeSetcheck()Validation checks for invalid parameter values, misconfiguration, etc.voidfwdPut(Pattern pattern)Method to put a pattern forward to the next layerStreamInputSynapsegetDesired()Insert the method's description here.intgetInputDimension()getInputDimension method comment.MonitorgetMonitor()Insert the method's description here.java.lang.StringgetName()Returns the name of the output synapseComparisonSynapsegetTheComparisonSynapse()LinearLayergetTheLinearLayer()Returns the internal Layer used to transport the result to the connected output synapsevoidinit()booleanisEnabled()Getter for property enabled.booleanisOutputFull()Getter for property outputFull.voidremoveResultSynapse(OutputPatternListener listener)Removes an output synapsevoidresetInput()Resets the internal buffer of the desired StreamInputSynapsePatternrevGet()Returns the error pattern coming from the next layer during the training phasebooleansetDesired(StreamInputSynapse fn)Setter for the desired data setvoidsetEnabled(boolean enabled)Setter for property enabled.voidsetInputDimension(int newInputDimension)setInputDimension method.voidsetMonitor(Monitor newMonitor)Data di creazione: (06/04/00 23.33.24)voidsetName(java.lang.String newName)Sets the name of the output synapsevoidsetOutputFull(boolean outputFull)Setter for property outputFull.voidsetTheComparisonSynapse(ComparisonSynapse theComparisonSynapse)Needed for Save as XMLvoidsetTheLinearLayer(LinearLayer newTheLinearLayer)Needed for Save as XMLvoidstop()
-
-
-
Method Detail
-
fwdPut
public void fwdPut(Pattern pattern)
Description copied from interface:OutputPatternListenerMethod to put a pattern forward to the next layer- Specified by:
fwdPutin interfaceOutputPatternListener- Parameters:
pattern- neural.engine.Pattern
-
getDesired
public StreamInputSynapse getDesired()
Insert the method's description here. Creation date: (03/08/2000 22.50.55)- Specified by:
getDesiredin interfaceComparingElement- Returns:
- java.lang.String
-
getInputDimension
public int getInputDimension()
getInputDimension method comment.- Specified by:
getInputDimensionin interfaceOutputPatternListener- Returns:
- int
-
getMonitor
public Monitor getMonitor()
Insert the method's description here. Creation date: (03/08/2000 22.54.48)- Specified by:
getMonitorin interfaceNeuralElement- Returns:
- neural.engine.Monitor
-
getTheLinearLayer
public LinearLayer getTheLinearLayer()
Description copied from interface:ComparingElementReturns the internal Layer used to transport the result to the connected output synapse- Specified by:
getTheLinearLayerin interfaceComparingElement- Returns:
- neural.engine.LinearLayer changed to public for Save As XML
-
getTheComparisonSynapse
public ComparisonSynapse getTheComparisonSynapse()
- Returns:
- neural.engine.TeacherSynapse changed to public for Save As XML
-
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- Returns:
- neural.engine.Pattern
-
setDesired
public boolean setDesired(StreamInputSynapse fn)
Description copied from interface:ComparingElementSetter for the desired data set- Specified by:
setDesiredin interfaceComparingElement
-
addResultSynapse
public boolean addResultSynapse(OutputPatternListener listener)
Description copied from interface:ComparingElementAdds an output synapse to which the result must be sent- Specified by:
addResultSynapsein interfaceComparingElement
-
removeResultSynapse
public void removeResultSynapse(OutputPatternListener listener)
Description copied from interface:ComparingElementRemoves an output synapse- Specified by:
removeResultSynapsein interfaceComparingElement
-
setInputDimension
public void setInputDimension(int newInputDimension)
setInputDimension method.- Specified by:
setInputDimensionin interfaceOutputPatternListener
-
setMonitor
public void setMonitor(Monitor newMonitor)
Data di creazione: (06/04/00 23.33.24)- Specified by:
setMonitorin interfaceNeuralElement- Parameters:
newMonitor- neural.engine.Monitor
-
stop
public void stop()
-
getName
public java.lang.String getName()
Description copied from interface:NeuralElementReturns the name of the output synapse- Specified by:
getNamein interfaceNeuralElement- Returns:
- String
-
setName
public void setName(java.lang.String newName)
Description copied from interface:NeuralElementSets the name of the output synapse- Specified by:
setNamein interfaceNeuralElement- Parameters:
newName- String
-
setTheComparisonSynapse
public void setTheComparisonSynapse(ComparisonSynapse theComparisonSynapse)
Needed for Save as XML
-
setTheLinearLayer
public void setTheLinearLayer(LinearLayer newTheLinearLayer)
Needed for Save as XML
-
resetInput
public void resetInput()
Description copied from interface:ComparingElementResets the internal buffer of the desired StreamInputSynapse- Specified by:
resetInputin interfaceComparingElement
-
check
public java.util.TreeSet check()
Description copied from interface:NeuralElementValidation checks for invalid parameter values, misconfiguration, etc. All network components should include a check method that firstly calls its ancestor check method and adds these to any check messages it produces. This allows check messages to be collected from all levels of a component to be returned to the caller's check method. Using a TreeSet ensures that duplicate messages are removed. Check messages should be produced using the generateValidationErrorMessage method of the NetChecker class.- Specified by:
checkin interfaceNeuralElement- Returns:
- validation errors.
-
isEnabled
public boolean isEnabled()
Getter for property enabled.- Specified by:
isEnabledin interfaceNeuralElement- Returns:
- Value of property enabled.
-
setEnabled
public void setEnabled(boolean enabled)
Setter for property enabled.- Specified by:
setEnabledin interfaceNeuralElement- Parameters:
enabled- New value of property enabled.
-
isOutputFull
public boolean isOutputFull()
Getter for property outputFull.- Specified by:
isOutputFullin interfaceOutputPatternListener- Returns:
- Value of property outputFull.
-
setOutputFull
public void setOutputFull(boolean outputFull)
Setter for property outputFull.- Specified by:
setOutputFullin interfaceOutputPatternListener- Parameters:
outputFull- New value of property outputFull.
-
init
public void init()
- Specified by:
initin interfaceNeuralElement
-
-
DataMelt 3.0 © DataMelt by jWork.ORG