|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.engine.learning.TeachingSynapse
public class TeachingSynapse
Field Summary | |
---|---|
protected AbstractTeacherSynapse |
theTeacherSynapse
|
Constructor Summary | |
---|---|
TeachingSynapse()
|
|
TeachingSynapse(TeacherSynapse aTeacher)
Creates a TeachingSynapse |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractTeacherSynapse theTeacherSynapse
Constructor Detail |
---|
public TeachingSynapse()
public TeachingSynapse(TeacherSynapse aTeacher)
aTeacher
- the teacher to use. The default constructor
(TeachingSynapse()
) uses a normal TeacherSynapse
.Method Detail |
---|
public void fwdPut(Pattern pattern)
OutputPatternListener
fwdPut
in interface OutputPatternListener
pattern
- neural.engine.Patternpublic StreamInputSynapse getDesired()
getDesired
in interface ComparingElement
public int getInputDimension()
getInputDimension
in interface OutputPatternListener
public Monitor getMonitor()
getMonitor
in interface NeuralElement
public LinearLayer getTheLinearLayer()
ComparingElement
getTheLinearLayer
in interface ComparingElement
public AbstractTeacherSynapse getTheTeacherSynapse()
public Pattern revGet()
OutputPatternListener
revGet
in interface OutputPatternListener
public boolean setDesired(StreamInputSynapse fn)
ComparingElement
setDesired
in interface ComparingElement
public boolean addResultSynapse(OutputPatternListener listener)
ComparingElement
addResultSynapse
in interface ComparingElement
public void removeResultSynapse(OutputPatternListener listener)
ComparingElement
removeResultSynapse
in interface ComparingElement
public void setInputDimension(int newInputDimension)
setInputDimension
in interface OutputPatternListener
public void setMonitor(Monitor newMonitor)
setMonitor
in interface NeuralElement
newMonitor
- neural.engine.Monitorpublic void stop()
public java.lang.String getName()
NeuralElement
getName
in interface NeuralElement
public void setName(java.lang.String newName)
NeuralElement
setName
in interface NeuralElement
newName
- 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()
ComparingElement
resetInput
in interface ComparingElement
public void reset()
reset
in interface ComparingElement
public java.util.TreeSet check()
NeuralElement
check
in interface NeuralElement
public boolean isEnabled()
isEnabled
in interface NeuralElement
public void setEnabled(boolean enabled)
setEnabled
in interface NeuralElement
enabled
- New value of property enabled.public boolean isOutputFull()
isOutputFull
in interface OutputPatternListener
public void setOutputFull(boolean outputFull)
setOutputFull
in interface OutputPatternListener
outputFull
- New value of property outputFull.public void init()
init
in interface NeuralElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |