public class TeachingSynapse extends java.lang.Object implements ComparingElement
| Modifier and Type | Field and Description |
|---|---|
protected AbstractTeacherSynapse |
theTeacherSynapse |
| Constructor and Description |
|---|
TeachingSynapse() |
TeachingSynapse(TeacherSynapse aTeacher)
Creates a TeachingSynapse
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResultSynapse(OutputPatternListener listener)
Adds an output synapse to which the result must be sent
|
protected void |
backward(double[] pattern)
Not used
Training phase.
|
java.util.TreeSet |
check()
Validation checks for invalid parameter values, misconfiguration, etc.
|
protected void |
forward(double[] pattern)
Recall phase
Not used
|
void |
fwdPut(Pattern pattern)
Method to put a pattern forward to the next layer
|
StreamInputSynapse |
getDesired()
Insert the method's description here.
|
int |
getInputDimension()
getInputDimension method comment.
|
Monitor |
getMonitor()
Insert the method's description here.
|
java.lang.String |
getName()
Returns the name of the output synapse
|
LinearLayer |
getTheLinearLayer()
Returns the internal Layer used to transport the result to the connected output synapse
|
AbstractTeacherSynapse |
getTheTeacherSynapse() |
void |
init() |
boolean |
isEnabled()
Getter for property enabled.
|
boolean |
isOutputFull()
Getter for property outputFull.
|
void |
removeResultSynapse(OutputPatternListener listener)
Removes an output synapse
|
void |
reset()
Less intense than resetInput
|
void |
resetInput()
Resets the internal buffer of the desired StreamInputSynapse
|
Pattern |
revGet()
Returns the error pattern coming from the next layer during the training phase
|
protected void |
setArrays(int rows,
int cols)
Not used
Insert the method's description here.
|
boolean |
setDesired(StreamInputSynapse fn)
Setter for the desired data set
|
protected void |
setDimensions(int rows,
int cols)
Not used
|
void |
setEnabled(boolean enabled)
Setter for property enabled.
|
void |
setInputDimension(int newInputDimension)
setInputDimension method.
|
void |
setMonitor(Monitor newMonitor)
Inserire qui la descrizione del metodo.
|
void |
setName(java.lang.String newName)
Sets the name of the output synapse
|
void |
setOutputFull(boolean outputFull)
Setter for property outputFull.
|
void |
setTheLinearLayer(LinearLayer newTheLinearLayer)
Needed for Save as XML
|
void |
setTheTeacherSynapse(TeacherSynapse newTheTeacherSynapse)
Needed for Save as XML
|
void |
stop() |
protected AbstractTeacherSynapse theTeacherSynapse
public TeachingSynapse()
public TeachingSynapse(TeacherSynapse aTeacher)
aTeacher - the teacher to use. The default constructor
(TeachingSynapse()) uses a normal TeacherSynapse.public void fwdPut(Pattern pattern)
OutputPatternListenerfwdPut in interface OutputPatternListenerpattern - neural.engine.Patternpublic StreamInputSynapse getDesired()
getDesired in interface ComparingElementpublic int getInputDimension()
getInputDimension in interface OutputPatternListenerpublic Monitor getMonitor()
getMonitor in interface NeuralElementpublic LinearLayer getTheLinearLayer()
ComparingElementgetTheLinearLayer in interface ComparingElementpublic AbstractTeacherSynapse getTheTeacherSynapse()
public Pattern revGet()
OutputPatternListenerrevGet in interface OutputPatternListenerpublic boolean setDesired(StreamInputSynapse fn)
ComparingElementsetDesired in interface ComparingElementpublic boolean addResultSynapse(OutputPatternListener listener)
ComparingElementaddResultSynapse in interface ComparingElementpublic void removeResultSynapse(OutputPatternListener listener)
ComparingElementremoveResultSynapse in interface ComparingElementpublic void setInputDimension(int newInputDimension)
setInputDimension in interface OutputPatternListenerpublic void setMonitor(Monitor newMonitor)
setMonitor in interface NeuralElementnewMonitor - neural.engine.Monitorpublic void stop()
public java.lang.String getName()
NeuralElementgetName in interface NeuralElementpublic void setName(java.lang.String newName)
NeuralElementsetName in interface NeuralElementnewName - Stringprotected void forward(double[] pattern)
pattern - double[] - pattern di input sul quale applicare la funzione di trasferimentoprotected void setArrays(int rows,
int cols)
protected void setDimensions(int rows,
int cols)
int - rows - righeint - cols - colonneprotected void backward(double[] pattern)
pattern - double[] - input patternpublic void setTheTeacherSynapse(TeacherSynapse newTheTeacherSynapse)
public void setTheLinearLayer(LinearLayer newTheLinearLayer)
public void resetInput()
ComparingElementresetInput in interface ComparingElementpublic void reset()
reset in interface ComparingElementpublic java.util.TreeSet check()
NeuralElementcheck in interface NeuralElementpublic boolean isEnabled()
isEnabled in interface NeuralElementpublic void setEnabled(boolean enabled)
setEnabled in interface NeuralElementenabled - New value of property enabled.public boolean isOutputFull()
isOutputFull in interface OutputPatternListenerpublic void setOutputFull(boolean outputFull)
setOutputFull in interface OutputPatternListeneroutputFull - New value of property outputFull.public void init()
init in interface NeuralElementSubmit Feedback to pmarrone@users.sourceforge.net