public class OrNode extends Node<OrNode,Activation>
Node.RidVisited, Node.ThreadState<T extends Node,A extends NodeActivation>| Modifier and Type | Field and Description |
|---|---|
TreeMap<Integer,TreeSet<Provider<Node>>> |
allParents |
Neuron |
neuron |
TreeMap<Integer,TreeSet<Provider<Node>>> |
parents |
Node |
requiredNode |
allOrChildren, andChildren, BEGIN_COMP, END_COMP, isDiscovered, level, lock, markedCreated, MAX_NODE, MAX_RELATIVE_RID, MIN_NODE, numberOfNeuronRefs, orChildren, reverseAndChildren, RID_COMP, statistic, threadslastUsedDocumentId, modified, provider| Modifier and Type | Method and Description |
|---|---|
void |
addActivation(Document doc,
Integer ridOffset,
NodeActivation inputAct) |
void |
addInput(Integer ridOffset,
int threadId,
Node in,
boolean all) |
void |
apply(Activation act) |
void |
changeNumberOfNeuronRefs(int threadId,
long v,
int d) |
void |
cleanup() |
double |
computeSynapseWeightSum(Integer offset,
INeuron n) |
Activation |
createActivation(Document doc,
NodeActivation.Key ak) |
void |
discover(NodeActivation act,
PatternDiscovery.Config config) |
String |
getNeuronLabel() |
String |
logicToString() |
InterpretationNode |
lookupOrOption(Document doc,
Range r,
boolean create) |
static void |
processCandidate(Node<?,? extends NodeActivation<?>> parentNode,
NodeActivation inputAct,
boolean train) |
void |
propagate(Activation act)
Propagate an activation to the next node or the next neuron that is depending on the current node.
|
void |
readFields(DataInput in,
Model m)
Deserialize the fields of this object from
in. |
void |
removeInput(Integer ridOffset,
int threadId,
Node in,
boolean all) |
void |
removeParents(int threadId,
boolean all) |
void |
reprocessInputs(Document doc) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
addActivation, clearActivations, clearActivations, clearActivations, compareTo, getActivations, getThreadState, isRequired, postCreate, processChanges, readNode, register, remove, toStringreactivate, read, setModified, suspendpublic OrNode()
public OrNode(Model m)
public Activation createActivation(Document doc, NodeActivation.Key ak)
public void addActivation(Document doc, Integer ridOffset, NodeActivation inputAct)
public void propagate(Activation act)
AbstractNodepropagate in class AbstractNode<Provider<OrNode>,Activation>public double computeSynapseWeightSum(Integer offset, INeuron n)
computeSynapseWeightSum in class Node<OrNode,Activation>public void cleanup()
cleanup in class Node<OrNode,Activation>public void apply(Activation act)
public void discover(NodeActivation act, PatternDiscovery.Config config)
discover in class Node<OrNode,Activation>public static void processCandidate(Node<?,? extends NodeActivation<?>> parentNode, NodeActivation inputAct, boolean train)
public InterpretationNode lookupOrOption(Document doc, Range r, boolean create)
public void reprocessInputs(Document doc)
reprocessInputs in class Node<OrNode,Activation>public void removeParents(int threadId,
boolean all)
public void changeNumberOfNeuronRefs(int threadId,
long v,
int d)
changeNumberOfNeuronRefs in class Node<OrNode,Activation>public String logicToString()
logicToString in class Node<OrNode,Activation>public void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class Node<OrNode,Activation>out - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in, Model m) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class Node<OrNode,Activation>in - DataInput to deseriablize this object from.IOExceptionpublic String getNeuronLabel()
getNeuronLabel in class Node<OrNode,Activation>Copyright © 2018. All rights reserved.