org.joone.io
Class MultipleInputSynapse
- java.lang.Object
-
- org.joone.engine.Synapse
-
- org.joone.io.StreamInputSynapse
-
- org.joone.io.InputSwitchSynapse
-
- org.joone.io.MultipleInputSynapse
-
- All Implemented Interfaces:
- java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable, InputSynapse, PlugInListener
public class MultipleInputSynapse extends InputSwitchSynapse
This class reads sequentially all the connected input synapses, in order to be able to use multiple sources as inputs. It reads all the rows of the first input synapse, then all the rows of the second one, and so on. The Stop Pattern is injected only after the last row of the last input synapse is read. When this class is used, the monitor.trainingPatterns must be set to the sum of the rows of all the attached input synapses.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MultipleInputSynapse()Creates a new instance of MultipleInputSynapse
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PatternfwdGet()Returns the pattern coming from the previous layer during the recall phasePatternfwdGet(InputConnector conn)Returns the pattern coming from the previous layer during the recall phase.voidgotoLine(int aNumLine)Point to the indicated line into the input streamvoidreset()reset the state of the input synapsevoidsetBuffered(boolean newBuffered)Sets the buffer-mode for this input synapse.voidsetFirstRow(int newFirstRow)Inserire qui la descrizione del metodo.voidsetLastRow(int newLastRow)Inserire qui la descrizione del metodo.-
Methods inherited from class org.joone.io.InputSwitchSynapse
addInputSynapse, check, dataChanged, getActiveInput, getAdvancedColumnSelector, getAllInputs, getDefaultInput, getFirstRow, getInspections, getLastRow, getMonitor, getName, getOutputDimension, getPlugIn, gotoFirstLine, init, isBuffered, isEOF, isStepCounter, numColumns, readAll, removeAllInputs, removeInputSynapse, resetInput, resetSwitch, revPut, setActiveInput, setAllInputs, setDecimalPoint, setDefaultInput, setMonitor, setName, setOutputDimension, setStepCounter
-
Methods inherited from class org.joone.io.StreamInputSynapse
addPlugIn, addPlugInListener, getAllPlugInListeners, getCurrentRow, getDecimalPoint, getFirstCol, getInputPatterns, getInputVector, getLastCol, getMaxBufSize, getStream, InspectableTitle, Inspections, removeAllPlugIns, removePlugInListener, setAdvancedColumnSelector, setFirstCol, setInputPatterns, setLastCol, setMaxBufSize, setPlugin, setPlugIn
-
Methods inherited from class org.joone.engine.Synapse
addNoise, canCountSteps, fwdPut, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getWeights, initLearner, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, revGet, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setOutputFull, setWeights
-
-
-
-
Constructor Detail
-
MultipleInputSynapse
public MultipleInputSynapse()
Creates a new instance of MultipleInputSynapse
-
-
Method Detail
-
fwdGet
public Pattern fwdGet()
Description copied from class:InputSwitchSynapseReturns the pattern coming from the previous layer during the recall phase- Specified by:
fwdGetin interfaceInputPatternListener- Overrides:
fwdGetin classInputSwitchSynapse- Returns:
- neural.engine.Pattern
-
fwdGet
public Pattern fwdGet(InputConnector conn)
Description copied from class:InputSwitchSynapseReturns the pattern coming from the previous layer during the recall phase. This method is called by the InputConnector class- Overrides:
fwdGetin classInputSwitchSynapse- Returns:
- neural.engine.Pattern
-
reset
public void reset()
Description copied from class:StreamInputSynapsereset the state of the input synapse- Specified by:
resetin interfaceInputPatternListener- Overrides:
resetin classInputSwitchSynapse
-
setBuffered
public void setBuffered(boolean newBuffered)
Description copied from class:StreamInputSynapseSets the buffer-mode for this input synapse.- Specified by:
setBufferedin interfaceInputSynapse- Overrides:
setBufferedin classInputSwitchSynapse- Parameters:
newBuffered- boolean
-
gotoLine
public void gotoLine(int aNumLine) throws java.io.IOExceptionDescription copied from class:InputSwitchSynapsePoint to the indicated line into the input stream- Specified by:
gotoLinein interfaceInputSynapse- Overrides:
gotoLinein classInputSwitchSynapse- Throws:
java.io.IOException
-
setFirstRow
public void setFirstRow(int newFirstRow)
Description copied from class:StreamInputSynapseInserire qui la descrizione del metodo. Data di creazione: (11/04/00 1.22.28)- Specified by:
setFirstRowin interfaceInputSynapse- Overrides:
setFirstRowin classStreamInputSynapse- Parameters:
newFirstRow- int
-
setLastRow
public void setLastRow(int newLastRow)
Description copied from class:StreamInputSynapseInserire qui la descrizione del metodo. Data di creazione: (11/04/00 1.22.34)- Specified by:
setLastRowin interfaceInputSynapse- Overrides:
setLastRowin classStreamInputSynapse- Parameters:
newLastRow- int
-
-
DataMelt 3.0 © DataMelt by jWork.ORG