public static class Synapse.Builder extends Object implements Neuron.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 |
double |
limit |
Neuron |
neuron |
boolean |
recurrent |
Integer |
synapseId |
double |
weight |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Synapse |
getSynapse(Neuron outputNeuron) |
void |
registerSynapseIds(Neuron n) |
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 |
setLimit(double limit) |
Synapse.Builder |
setNeuron(Neuron neuron)
Determines the input neuron.
|
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 boolean recurrent
public Neuron neuron
public double weight
public double bias
public double limit
public DistanceFunction distanceFunction
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 setLimit(double limit)
public Synapse.Builder setDistanceFunction(DistanceFunction distFunc)
public Synapse.Builder setIdentity(boolean identity)
public Synapse.Builder setSynapseId(int synapseId)
public void registerSynapseIds(Neuron n)
registerSynapseIds in interface Neuron.BuilderCopyright © 2018. All rights reserved.