public class OrNode extends Node<OrNode,Activation>
Node.RidVisited, Node.ThreadState<T extends Node,A extends NodeActivation<T>>| 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, MAX_NODE, MAX_RELATIVE_RID, MIN_NODE, numberOfNeuronRefs, orChildren, reverseAndChildren, RID_COMP, statistic, threadslastUsedDocumentId, 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(Document doc,
Activation act) |
void |
changeNumberOfNeuronRefs(int threadId,
long v,
int d) |
void |
cleanup() |
double |
computeSynapseWeightSum(Integer offset,
INeuron n) |
protected Activation |
createActivation(Document doc,
NodeActivation.Key ak) |
void |
discover(Document doc,
NodeActivation act,
PatternDiscovery.Config config) |
String |
getNeuronLabel() |
boolean |
isAllowedOption(int threadId,
InterpretationNode n,
NodeActivation act,
long v) |
String |
logicToString() |
InterpretationNode |
lookupOrOption(Document doc,
Range r,
boolean create) |
static void |
processCandidate(Document doc,
Node<?,? extends NodeActivation<?>> parentNode,
NodeActivation inputAct,
boolean train) |
void |
propagateAddedActivation(Document doc,
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 |
register(Activation act,
Document doc) |
void |
removeInput(Integer ridOffset,
int threadId,
Node in,
boolean all) |
void |
removeParents(int threadId,
boolean all) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
addActivationAndPropagate, compareTo, getThreadState, isRequired, processChanges, readNode, remove, toString, weightsToStringreactivate, read, setModified, suspendpublic OrNode()
public OrNode(Model m)
public boolean isAllowedOption(int threadId,
InterpretationNode n,
NodeActivation act,
long v)
isAllowedOption in class Node<OrNode,Activation>protected Activation createActivation(Document doc, NodeActivation.Key ak)
public void addActivation(Document doc, Integer ridOffset, NodeActivation inputAct)
public void propagateAddedActivation(Document doc, Activation act)
NodepropagateAddedActivation in class Node<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(Document doc, Activation act)
public void discover(Document doc, NodeActivation act, PatternDiscovery.Config config)
discover in class Node<OrNode,Activation>public static void processCandidate(Document doc, Node<?,? extends NodeActivation<?>> parentNode, NodeActivation inputAct, boolean train)
public InterpretationNode lookupOrOption(Document doc, Range r, boolean create)
public void removeParents(int threadId,
boolean all)
public void register(Activation act, Document doc)
register in class Node<OrNode,Activation>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.