org.joone.engine
Class DirectSynapse

java.lang.Object
  extended by org.joone.engine.Synapse
      extended by org.joone.engine.DirectSynapse
All Implemented Interfaces:
java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable

public class DirectSynapse
extends Synapse

This is forward-only synapse. It does not backpropagate any teaching signal (if any layer forwards its signal to this synapse it will prevent it from learning by backpropagation)

See Also:
Serialized Form

Field Summary
 
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
DirectSynapse()
           
 
Method Summary
protected  void backward(double[] pattern)
          Funzione di TRAIN dell'elemento.
 java.util.TreeSet check()
          Base for check messages.
protected  void forward(double[] pattern)
          Recall function
 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.
protected  void setDimensions(int rows, int cols)
          Dimensiona l'elemento
 
Methods inherited from class org.joone.engine.Synapse
addNoise, canCountSteps, fwdGet, fwdPattern_consume, fwdPattern_produce, fwdPut, getCount, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getRevLock, getSynapseNameSafely, getWeights, init, initLearner, InspectableTitle, Inspections, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, reset, revPattern_consume, revPattern_produce, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setMonitor, setName, setOutputDimension, setOutputFull, setWeights, warnLogger, warnLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectSynapse

public DirectSynapse()
Method Detail

backward

protected void backward(double[] pattern)
Description copied from class: Synapse
Funzione di TRAIN dell'elemento.

Specified by:
backward in class Synapse
Parameters:
pattern - double[] - pattern di input sul quale applicare la funzione di trasferimento

forward

protected void forward(double[] pattern)
Description copied from class: Synapse
Recall function

Specified by:
forward in class Synapse
Parameters:
pattern - double[] - input pattern. THIS PATTERN CANNOT BE CHANGED

setArrays

protected void setArrays(int rows,
                         int cols)
setArrays method comment.

Specified by:
setArrays in class Synapse

setDimensions

protected void setDimensions(int rows,
                             int cols)
Description copied from class: Synapse
Dimensiona l'elemento

Specified by:
setDimensions in class Synapse

revPut

public void revPut(Pattern pattern)
Description copied from interface: InputPatternListener
Method to put an error pattern backward to the previous layer

Specified by:
revPut in interface InputPatternListener
Overrides:
revPut in class Synapse
Parameters:
pattern - neural.engine.Pattern

revGet

public Pattern revGet()
Description copied from interface: OutputPatternListener
Returns the error pattern coming from the next layer during the training phase

Specified by:
revGet in interface OutputPatternListener
Overrides:
revGet in class Synapse
Returns:
neural.engine.Pattern

check

public java.util.TreeSet check()
Description copied from class: Synapse
Base for check messages. Subclasses should call this method from thier own check method.

Specified by:
check in interface NeuralElement
Overrides:
check in class Synapse
Returns:
validation errors.
See Also:
InputPaternListener, OutputPaternListener


Submit Feedback to pmarrone@users.sourceforge.net