|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joone.engine.Synapse
org.joone.engine.learning.ComparisonSynapse
public class ComparisonSynapse
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.
| Field Summary | |
|---|---|
protected Fifo |
fifo
|
protected boolean |
firstTime
|
| 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 | |
|---|---|
ComparisonSynapse()
|
|
| Method Summary | |
|---|---|
protected void |
backward(double[] pattern)
Funzione di TRAIN dell'elemento. |
java.util.TreeSet |
check()
Base for check messages. |
protected void |
forward(double[] pActual)
Recall function |
Pattern |
fwdGet()
Returns the pattern coming from the previous layer during the recall phase |
void |
fwdPut(Pattern pattern)
Method to put a pattern forward to the next layer |
StreamInputSynapse |
getDesired()
Inserire qui la descrizione del metodo. |
int |
getOutputDimension()
Returns the output dimension of the synapse. |
void |
init()
Synapse's initialization. |
void |
netStoppedError(NeuralNetEvent e,
java.lang.String error)
|
void |
reset()
reset of the input synapse |
void |
resetInput()
|
Pattern |
revGet()
Returns the error pattern coming from the next layer during the training phase |
void |
revPut(Pattern pattern)
Method to put an error pattern backward to the previous layer |
protected void |
setArrays(int rows,
int cols)
setArrays method comment. |
boolean |
setDesired(StreamInputSynapse newDesired)
Set the input data stream containing desired training data |
protected void |
setDimensions(int rows,
int cols)
Dimensiona l'elemento |
void |
setInputDimension(int newInputDimension)
Sets the input dimension of the synapse |
void |
setMonitor(Monitor newMonitor)
Sets the Monitor object of the Teacher Synapse. |
protected void |
stopTheNet()
|
| Methods inherited from class org.joone.engine.Synapse |
|---|
addNoise, canCountSteps, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getRevLock, getWeights, initLearner, InspectableTitle, Inspections, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, setEnabled, setIgnoreBefore, setInputFull, setLearningRate, setLoopBack, setMomentum, setName, setOutputDimension, setOutputFull, setWeights |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient Fifo fifo
protected transient boolean firstTime
| Constructor Detail |
|---|
public ComparisonSynapse()
| Method Detail |
|---|
protected void backward(double[] pattern)
Synapse
backward in class Synapsepattern - double[] - pattern di input sul quale applicare la funzione di trasferimentoprotected void forward(double[] pActual)
Synapse
forward in class SynapsepActual - double[] - input patternprotected void stopTheNet()
public Pattern fwdGet()
InputPatternListener
fwdGet in interface InputPatternListenerfwdGet in class Synapsepublic void fwdPut(Pattern pattern)
OutputPatternListener
fwdPut in interface OutputPatternListenerfwdPut in class Synapsepattern - neural.engine.Patternpublic StreamInputSynapse getDesired()
public Pattern revGet()
OutputPatternListener
revGet in interface OutputPatternListenerrevGet in class Synapsepublic void revPut(Pattern pattern)
InputPatternListener
revPut in interface InputPatternListenerrevPut in class Synapsepattern - neural.engine.Pattern
protected void setArrays(int rows,
int cols)
setArrays in class Synapsepublic boolean setDesired(StreamInputSynapse newDesired)
newDesired - neural.engine.StreamInputSynapsepublic void resetInput()
protected void setDimensions(int rows,
int cols)
Synapse
setDimensions in class Synapsepublic void setInputDimension(int newInputDimension)
Synapse
setInputDimension in interface OutputPatternListenersetInputDimension in class SynapsenewInputDimension - intpublic java.util.TreeSet check()
Synapse
check in interface NeuralElementcheck in class SynapseInputPaternListener,
OutputPaternListenerpublic void reset()
reset in interface InputPatternListenerreset in class Synapsepublic void setMonitor(Monitor newMonitor)
setMonitor in interface NeuralElementsetMonitor in class SynapsenewMonitor - neural.engine.Monitor
public void netStoppedError(NeuralNetEvent e,
java.lang.String error)
public int getOutputDimension()
getOutputDimension in interface InputPatternListenergetOutputDimension in interface LearnableSynapsegetOutputDimension in class Synapsepublic void init()
Synapse
init in interface NeuralElementinit in class Synapse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||