|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNeuron
ContextNeuron
The ContextNeuron class creates Context Neuron which are used to provide recurrency in the RNN network. They store the previous Hidden Neuron activated values and a variable amount of their own previous values, which is fed back into the network
RNN
Constructor Summary | |
ContextNeuron(double memoryDepth)
This constructor for the ContextNeuron specifies the memory depth
and sets the input value to 0.5 |
Method Summary | |
void |
calculateDelayedOutput()
Calculates the summation of the delayed output values |
void |
calculateOutput()
Calculates the output value |
protected double |
getInputValue()
Gets the input value |
protected double |
getOutputValue()
Gets the output value |
void |
input(double input)
Set the new input value and adds the old value to the memory |
void |
setBias(double input)
Sets the biased input |
protected void |
setInputValue(double inputValue)
Sets the input value |
protected void |
setOutputValue(double outputValue)
Sets the output value |
protected double |
sigmoidActivation(double summation)
The Sigmoid Activation Function |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextNeuron(double memoryDepth)
ContextNeuron
specifies the memory depth
and sets the input value to 0.5
memoryDepth
- The memory depthMethod Detail |
public void input(double input)
input
- The new input valuepublic void calculateOutput()
public void setBias(double input)
input
- The new input valuepublic void calculateDelayedOutput()
protected double sigmoidActivation(double summation)
protected double getInputValue()
protected void setInputValue(double inputValue)
inputValue
- the input valueprotected double getOutputValue()
protected void setOutputValue(double outputValue)
outputValue
- the output value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |