|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.nn.NeuronConnection
com.anji.nn.CacheNeuronConnection
A connection between neurons that caches its value from previous timestep. This is used to avoid deadlock when activating neurons and connections in a loop.
Field Summary |
Fields inherited from interface com.anji.nn.Connection |
XML_TAG |
Constructor Summary | |
CacheNeuronConnection(Neuron anIncoming)
|
|
CacheNeuronConnection(Neuron anIncoming,
double aWeight)
|
Method Summary | |
long |
cost()
|
boolean |
isRecurrent()
|
double |
read()
|
void |
reset()
clear cached value |
void |
step()
update value |
java.lang.String |
toXml()
|
Methods inherited from class com.anji.nn.NeuronConnection |
appendToXml, getId, getIncomingNode, getWeight, setId, setWeight, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CacheNeuronConnection(Neuron anIncoming)
NeuronConnection.NeuronConnection(Neuron)
public CacheNeuronConnection(Neuron anIncoming, double aWeight)
NeuronConnection.NeuronConnection(Neuron, double)
Method Detail |
public double read()
read
in interface Connection
read
in class NeuronConnection
public void step()
public java.lang.String toXml()
toXml
in interface Connection
toXml
in class NeuronConnection
public void reset()
public boolean isRecurrent()
isRecurrent
in class NeuronConnection
public long cost()
cost
in interface Connection
cost
in class NeuronConnection
Connection.cost()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |