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 |
BEGIN_COMP, END_COMP, endRequired, frequency, frequencyHasChanged, instanceSum, isDiscovered, isQueued, level, lock, MAX_NODE, MAX_RID, MIN_NODE, nOffset, nullHypFreq, numberOfNeuronRefs, oldNullHypFreq, queueId, RID_COMP, ridRequired, sizeSum, threads, visitedCounterlastUsedDocumentId, 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,
InterprNode conflict) |
void |
changeNumberOfNeuronRefs(int threadId,
long v,
int d) |
void |
cleanup(Model m) |
void |
computeNullHyp(Model m) |
double |
computeSynapseWeightSum(Integer offset,
INeuron n) |
protected Activation |
createActivation(Document doc,
NodeActivation.Key ak,
boolean isTrainingAct) |
void |
deleteActivation(Document doc,
Activation act) |
void |
discover(Document doc,
NodeActivation act,
TrainConfig trainConfig) |
String |
getNeuronLabel() |
boolean |
hasParent(Integer ridOffset,
Node in,
boolean all) |
boolean |
isAllowedOption(int threadId,
InterprNode n,
NodeActivation act,
long v) |
boolean |
isExpandable() |
String |
logicToString() |
InterprNode |
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,
InterprNode removedConflict)
Propagate an activation to the next node or the next neuron that is depending on the current node.
|
void |
propagateRemovedActivation(Document doc,
NodeActivation act) |
void |
readFields(DataInput in,
Model m)
Deserialize the fields of this object from
in. |
void |
register(Activation act,
Document doc) |
void |
removeActivation(Document doc,
Integer ridOffset,
NodeActivation<?> inputAct) |
void |
removeInput(Integer ridOffset,
int threadId,
Node in,
boolean all) |
void |
removeParents(int threadId,
boolean all) |
void |
unregister(Activation act,
Document doc) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
addActivationAndPropagate, clearActivations, clearActivations, clearActivations, compareTo, count, getActivations, getFirstActivation, getThreadState, isCovered, isPublic, isRequired, processChanges, readNode, removeActivationAndPropagate, toString, weightsToStringreactivate, read, suspendpublic OrNode()
public OrNode(Model m)
public void computeNullHyp(Model m)
computeNullHyp in class Node<OrNode,Activation>public boolean isExpandable()
isExpandable in class Node<OrNode,Activation>public boolean isAllowedOption(int threadId,
InterprNode n,
NodeActivation act,
long v)
isAllowedOption in class Node<OrNode,Activation>protected Activation createActivation(Document doc, NodeActivation.Key ak, boolean isTrainingAct)
public void deleteActivation(Document doc, Activation act)
public void addActivation(Document doc, Integer ridOffset, NodeActivation inputAct)
public void removeActivation(Document doc, Integer ridOffset, NodeActivation<?> inputAct)
public void propagateAddedActivation(Document doc, Activation act, InterprNode removedConflict)
NodepropagateAddedActivation in class Node<OrNode,Activation>public void propagateRemovedActivation(Document doc, NodeActivation act)
propagateRemovedActivation in class Node<OrNode,Activation>public double computeSynapseWeightSum(Integer offset, INeuron n)
computeSynapseWeightSum in class Node<OrNode,Activation>public void cleanup(Model m)
cleanup in class Node<OrNode,Activation>public void apply(Document doc, Activation act, InterprNode conflict)
public void discover(Document doc, NodeActivation act, TrainConfig trainConfig)
discover in class Node<OrNode,Activation>public static void processCandidate(Document doc, Node<?,? extends NodeActivation<?>> parentNode, NodeActivation inputAct, boolean train)
public InterprNode 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 unregister(Activation act, Document doc)
unregister 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 © 2017. All rights reserved.