|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.engine.Synapse
org.joone.io.StreamInputSynapse
org.joone.io.InputSwitchSynapse
org.joone.io.MultipleInputSynapse
public class MultipleInputSynapse
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.
Field Summary |
---|
Fields inherited from class org.joone.io.InputSwitchSynapse |
---|
inputs |
Fields inherited from class org.joone.io.StreamInputSynapse |
---|
cols, currentRow, EOF, InputVector, plugInListeners, tokens |
Fields inherited from class org.joone.engine.Synapse |
---|
array, b_pattern, bitems, bouts, count, enabled, fwdLock, inps, items, learnable, m_batch, m_pattern, myLearner, notFirstTime, notFirstTimeB, outs, revLock |
Constructor Summary | |
---|---|
MultipleInputSynapse()
Creates a new instance of MultipleInputSynapse |
Method Summary | |
---|---|
Pattern |
fwdGet()
Returns the pattern coming from the previous layer during the recall phase |
Pattern |
fwdGet(InputConnector conn)
Returns the pattern coming from the previous layer during the recall phase. |
protected int |
getNumberOfPatterns(StreamInputSynapse anInputSynpase)
Gets (finds out) how many patters an input synpase holds. |
void |
gotoLine(int aNumLine)
Point to the indicated line into the input stream |
void |
reset()
reset the state of the input synapse |
void |
setBuffered(boolean newBuffered)
Sets the buffer-mode for this input synapse. |
void |
setFirstRow(int newFirstRow)
Inserire qui la descrizione del metodo. |
void |
setLastRow(int newLastRow)
Inserire qui la descrizione del metodo. |
Methods inherited from class org.joone.engine.Synapse |
---|
addNoise, canCountSteps, fwdPut, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getRevLock, getWeights, initLearner, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, revGet, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setOutputFull, setWeights |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipleInputSynapse()
Method Detail |
---|
public Pattern fwdGet()
InputSwitchSynapse
fwdGet
in interface InputPatternListener
fwdGet
in class InputSwitchSynapse
public Pattern fwdGet(InputConnector conn)
InputSwitchSynapse
fwdGet
in class InputSwitchSynapse
protected int getNumberOfPatterns(StreamInputSynapse anInputSynpase)
anInputSynpase
- the number of patterns for this input synpase will be
returned.
anInputSynpase
holds.public void reset()
StreamInputSynapse
reset
in interface InputPatternListener
reset
in class InputSwitchSynapse
public void setBuffered(boolean newBuffered)
StreamInputSynapse
setBuffered
in interface InputSynapse
setBuffered
in class InputSwitchSynapse
newBuffered
- booleanpublic void gotoLine(int aNumLine) throws java.io.IOException
InputSwitchSynapse
gotoLine
in interface InputSynapse
gotoLine
in class InputSwitchSynapse
java.io.IOException
public void setFirstRow(int newFirstRow)
StreamInputSynapse
setFirstRow
in interface InputSynapse
setFirstRow
in class StreamInputSynapse
newFirstRow
- intpublic void setLastRow(int newLastRow)
StreamInputSynapse
setLastRow
in interface InputSynapse
setLastRow
in class StreamInputSynapse
newLastRow
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |