public class Activation extends Object implements Comparable<Activation>
Activation class is the most central class in Aika. On the one hand it stores the activation value
for a given neuron in the State substructure. On the other hand it specifies where this activation is
located within the document and to which interpretation it belongs. The Activation.Key therefore
consists of the logic node to which this activation belongs. If this logic node is an or-node, then this activation
automatically also belongs to the neuron as well. Furthermore, the key contains the char range within the document
and the relational id (rid). The relational id might be used to store the word pos for instance. Lastly, the key
contain the interpretation node of this activation, specifying to which interpretation this activation belongs.
The activations are linked to each other on two levels. The fields inputs and outputs
contain the activation links within the logic layer. The fields neuronInputs and
neuronOutputs contain the links on the neural layer.| Modifier and Type | Class and Description |
|---|---|
static class |
Activation.Key |
static class |
Activation.Rounds |
static class |
Activation.State |
static class |
Activation.SynapseActivation |
| Modifier and Type | Field and Description |
|---|---|
SearchNode.StateChange |
currentStateChange |
long |
currentStateV |
double |
errorSignal |
Activation.State |
finalState |
int |
id |
double |
initialErrorSignal |
TreeMap<Activation.Key,Activation> |
inputs |
boolean |
isQueued |
boolean |
isRemoved |
boolean |
isTrainingAct |
Activation.Key |
key |
double |
lowerBound |
TreeSet<Activation.SynapseActivation> |
neuronInputs |
TreeSet<Activation.SynapseActivation> |
neuronOutputs |
TreeMap<Activation.Key,Activation> |
outputs |
long |
queueId |
int |
removedId |
static int |
removedIdCounter |
Activation.Rounds |
rounds |
boolean |
ubQueued |
double |
upperBound |
static long |
visitedCounter |
long |
visitedNeuronTrain |
| Constructor and Description |
|---|
Activation(int id,
Activation.Key key) |
Activation(int id,
Node n,
Range pos,
Integer rid,
InterprNode o) |
public int id
public final Activation.Key key
public boolean isRemoved
public int removedId
public long visitedNeuronTrain
public static int removedIdCounter
public static long visitedCounter
public double upperBound
public double lowerBound
public Activation.Rounds rounds
public Activation.State finalState
public long currentStateV
public SearchNode.StateChange currentStateChange
public boolean isTrainingAct
public double initialErrorSignal
public double errorSignal
public TreeMap<Activation.Key,Activation> inputs
public TreeMap<Activation.Key,Activation> outputs
public TreeSet<Activation.SynapseActivation> neuronInputs
public TreeSet<Activation.SynapseActivation> neuronOutputs
public boolean ubQueued
public boolean isQueued
public long queueId
public Activation(int id,
Activation.Key key)
public Activation(int id,
Node n,
Range pos,
Integer rid,
InterprNode o)
public void link(Collection<Activation> inputActs)
public void unlink(Collection<Activation> inputActs)
public void unlink()
public void register(Document doc)
public void unregister(Document doc)
public static Activation get(Document doc, Node n, Integer rid, Range r, Range.Operator begin, Range.Operator end, InterprNode o, InterprNode.Relation or)
public static Activation get(Document doc, Node n, Activation.Key ak)
public static Activation getNextSignal(Node n, Document doc, int from, Integer rid, InterprNode o, boolean dir, boolean inv)
public static Stream<Activation> select(Document doc, Node n, Integer rid, Range r, Range.Operator begin, Range.Operator end, InterprNode o, InterprNode.Relation or)
public static Stream getActivationsByRange(Node.ThreadState th, Node n, Integer rid, Range r, Range.Operator begin, Range.Operator end, InterprNode o, InterprNode.Relation or)
public boolean filter(Node n, Integer rid, Range r, Range.Operator begin, Range.Operator end, InterprNode o, InterprNode.Relation or)
public int compareTo(Activation act)
compareTo in interface Comparable<Activation>public static int compare(Activation a, Activation b)
Copyright © 2017. All rights reserved.