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 |
|---|---|
Integer |
absoluteRid |
double |
bias |
Neuron |
neuron |
Range.Relation |
rangeMatch |
Range.Output |
rangeOutput |
boolean |
recurrent |
Integer |
relativeRid |
double |
weight |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Synapse.Builder in) |
Synapse |
getSynapse(Neuron outputNeuron) |
Synapse.Builder |
setAbsoluteRid(Integer absoluteRid)
If the absolute relational id (rid) not null, then it is required to match the rid of input activation.
|
Synapse.Builder |
setBias(double bias)
The bias of this input that will later on be added to the neurons bias.
|
Synapse.Builder |
setNeuron(Neuron neuron)
Determines the input neuron.
|
Synapse.Builder |
setRangeMatch(Range.Operator beginToBegin,
Range.Operator endToEnd)
setRangeMatch is just a convenience function to call both
setBeginToBeginRangeMatch and setEndToEndRangeMatch at the same time. |
Synapse.Builder |
setRangeMatch(Range.Relation rr)
setRangeMatch is just a convenience function to call both
setBeginToBeginRangeMatch and setEndToEndRangeMatch at the same time. |
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 |
setRelativeRid(Integer relativeRid)
The relative relational id (rid) determines the relative position of this inputs rid with respect to
other inputs of this neuron.
|
Synapse.Builder |
setWeight(double weight)
The synapse weight of this input.
|
public boolean recurrent
public Neuron neuron
public double weight
public double bias
public Range.Relation rangeMatch
public Range.Output rangeOutput
public Integer relativeRid
public Integer absoluteRid
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 setAbsoluteRid(Integer absoluteRid)
absoluteRid - public Synapse.Builder setRelativeRid(Integer relativeRid)
relativeRid - public Synapse.Builder setRangeMatch(Range.Relation rr)
setRangeMatch is just a convenience function to call both
setBeginToBeginRangeMatch and setEndToEndRangeMatch at the same time.rr - public Synapse.Builder setRangeMatch(Range.Operator beginToBegin, Range.Operator endToEnd)
setRangeMatch is just a convenience function to call both
setBeginToBeginRangeMatch and setEndToEndRangeMatch at the same time.beginToBegin - endToEnd - 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 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 int compareTo(Synapse.Builder in)
compareTo in interface Comparable<Synapse.Builder>Copyright © 2018. All rights reserved.