public static class Synapse.Builder extends Object implements Comparable<Synapse.Builder>
Builder class is just a helper class which is used to initialize a neuron. Most of the parameters of this class
will be mapped to a input synapse for this neuron.| Modifier and Type | Field and Description |
|---|---|
double |
bias |
DistanceFunction |
distanceFunction |
boolean |
identity |
Neuron |
neuron |
static int |
OUTPUT |
int |
rangeInput |
Range.Output |
rangeOutput |
boolean |
recurrent |
Map<Integer,Relation> |
relations |
Integer |
synapseId |
double |
weight |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Synapse.Builder |
addInstanceRelation(InstanceRelation.Type type,
int synapseId) |
Synapse.Builder |
addRangeRelation(Range.Relation relation,
int synapseId) |
Synapse.Builder |
addRelations(Map<Integer,Relation> relations) |
int |
compareTo(Synapse.Builder in) |
Synapse |
getSynapse(Neuron outputNeuron) |
Synapse.Builder |
setBias(double bias)
The bias of this input that will later on be added to the neurons bias.
|
Synapse.Builder |
setDistanceFunction(DistanceFunction distFunc) |
Synapse.Builder |
setIdentity(boolean identity) |
Synapse.Builder |
setNeuron(Neuron neuron)
Determines the input neuron.
|
Synapse.Builder |
setRangeInput(int synapseId)
By default the output range of th synapses input neuron is used.
|
Synapse.Builder |
setRangeOutput(boolean ro)
setRangeOutput is just a convenience function to call setBeginRangeOutput and
setEndRangeOutput at the same time. |
Synapse.Builder |
setRangeOutput(boolean begin,
boolean end)
setRangeOutput is just a convenience function to call setBeginRangeOutput and
setEndRangeOutput at the same time. |
Synapse.Builder |
setRangeOutput(Range.Mapping begin,
Range.Mapping end)
Determines if this input is used to compute the range start of the output activation.
|
Synapse.Builder |
setRangeOutput(Range.Output rangeOutput)
setRangeOutput is just a convenience function to call setBeginRangeOutput and
setEndRangeOutput at the same time. |
Synapse.Builder |
setRecurrent(boolean recurrent)
The property
recurrent specifies if input is a recurrent feedback link. |
Synapse.Builder |
setSynapseId(int synapseId) |
Synapse.Builder |
setWeight(double weight)
The synapse weight of this input.
|
public static final int OUTPUT
public boolean recurrent
public Neuron neuron
public double weight
public double bias
public DistanceFunction distanceFunction
public int rangeInput
public Range.Output rangeOutput
public boolean identity
public Integer synapseId
public Synapse.Builder setRecurrent(boolean recurrent)
recurrent specifies if input is a recurrent feedback link. Recurrent
feedback links can be either negative or positive depending on the weight of the synapse. Recurrent feedback links
kind of allow to use future information as inputs of a current neuron. Aika allows this by making assumptions about
the recurrent input neuron. The class SearchNode modifies these assumptions until the best interpretation
for this document is found.recurrent - public Synapse.Builder setNeuron(Neuron neuron)
neuron - public Synapse.Builder setWeight(double weight)
weight - public Synapse.Builder setBias(double bias)
bias - public Synapse.Builder setDistanceFunction(DistanceFunction distFunc)
public Synapse.Builder setRangeInput(int synapseId)
synapseId - public Synapse.Builder setRangeOutput(boolean ro)
setRangeOutput is just a convenience function to call setBeginRangeOutput and
setEndRangeOutput at the same time.ro - public Synapse.Builder setRangeOutput(boolean begin, boolean end)
setRangeOutput is just a convenience function to call setBeginRangeOutput and
setEndRangeOutput at the same time.begin - end - public Synapse.Builder setIdentity(boolean identity)
public Synapse.Builder setRangeOutput(Range.Output rangeOutput)
setRangeOutput is just a convenience function to call setBeginRangeOutput and
setEndRangeOutput at the same time.rangeOutput - public Synapse.Builder setRangeOutput(Range.Mapping begin, Range.Mapping end)
begin - end - public Synapse.Builder setSynapseId(int synapseId)
public Synapse.Builder addRelations(Map<Integer,Relation> relations)
public Synapse.Builder addInstanceRelation(InstanceRelation.Type type, int synapseId)
public Synapse.Builder addRangeRelation(Range.Relation relation, int synapseId)
public int compareTo(Synapse.Builder in)
compareTo in interface Comparable<Synapse.Builder>Copyright © 2018. All rights reserved.