|
||||||||||
| 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, 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, fwdPattern_consume, fwdPattern_produce, fwdPut, getCount, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getRevLock, getSynapseNameSafely, getWeights, initLearner, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, revGet, revPattern_consume, revPattern_produce, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setOutputFull, setWeights, warnLogger, warnLogger |
| 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 InputPatternListenerfwdGet in class InputSwitchSynapsepublic Pattern fwdGet(InputConnector conn)
InputSwitchSynapse
fwdGet in class InputSwitchSynapseprotected 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 InputPatternListenerreset in class InputSwitchSynapsepublic void setBuffered(boolean newBuffered)
StreamInputSynapse
setBuffered in interface InputSynapsesetBuffered in class InputSwitchSynapsenewBuffered - boolean
public void gotoLine(int aNumLine)
throws java.io.IOException
InputSwitchSynapse
gotoLine in interface InputSynapsegotoLine in class InputSwitchSynapsejava.io.IOExceptionpublic void setFirstRow(int newFirstRow)
StreamInputSynapse
setFirstRow in interface InputSynapsesetFirstRow in class StreamInputSynapsenewFirstRow - intpublic void setLastRow(int newLastRow)
StreamInputSynapse
setLastRow in interface InputSynapsesetLastRow in class StreamInputSynapsenewLastRow - int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||