public class Input extends Object implements Comparable<Input>
Input 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 | Class and Description |
|---|---|
static class |
Input.RangeRelation |
| Modifier and Type | Field and Description |
|---|---|
Integer |
absoluteRid |
Range.Mapping |
endMapping |
Range.Operator |
endRangeMatch |
boolean |
endRangeOutput |
double |
maxLowerWeightsSum |
double |
minInput |
Neuron |
neuron |
boolean |
optional |
boolean |
recurrent |
Integer |
relativeRid |
Range.Mapping |
startMapping |
Range.Operator |
startRangeMatch |
boolean |
startRangeOutput |
double |
weight |
| Constructor and Description |
|---|
Input() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Input in) |
Input |
setAbsoluteRid(Integer absoluteRid)
If the absolute relational id (rid) not null, then it is required to match the rid of input activation.
|
Input |
setEndRangeMapping(Range.Mapping endMapping)
Using this method the range begin of the input activation might be mapped to the range end of the
output activation.
|
Input |
setEndRangeMatch(Range.Operator rm)
If set to true then the range end of this inputs activation needs to match.
|
Input |
setEndRangeOutput(boolean ro)
Determines if this input is used to compute the range end of the output activation.
|
Input |
setMaxLowerWeightsSum(double maxLowerWeightsSum)
MaxLowerWeightsSum is the expected sum of all weights smaller then the current weight.
|
Input |
setMinInput(double minInput)
The minimum activation value that is required for this input.
|
Input |
setNeuron(Neuron neuron)
Determines the input neuron.
|
Input |
setOptional(boolean optional)
If optional is set to true, then this input is an optional part of a conjunction.
|
Input |
setRangeMatch(Input.RangeRelation rr)
setRangeMatch is just a convenience function to call both setStartRangeMatch and setEndRangeMatch at the same time. |
Input |
setRangeOutput(boolean ro)
setRangeOutput is just a convenience function to call setStartRangeOutput and setEndRangeOutput at the same time. |
Input |
setRecurrent(boolean recurrent)
The property
recurrent specifies if input is a recurrent feedback link. |
Input |
setRelativeRid(Integer relativeRid)
The relative relational id (rid) determines the relative position of this inputs rid with respect to
other inputs of this neuron.
|
Input |
setStartRangeMapping(Range.Mapping startMapping)
Using this method the range end of the input activation might be mapped to the range begin of the
output activation.
|
Input |
setStartRangeMatch(Range.Operator rm)
If set to true then the range begin of this inputs activation needs to match.
|
Input |
setStartRangeOutput(boolean ro)
Determines if this input is used to compute the range start of the output activation.
|
Input |
setWeight(Double weight)
The synapse weight of this input.
|
public boolean recurrent
public boolean optional
public Neuron neuron
public double weight
public double maxLowerWeightsSum
public double minInput
public Range.Operator startRangeMatch
public Range.Operator endRangeMatch
public boolean startRangeOutput
public boolean endRangeOutput
public Range.Mapping startMapping
public Range.Mapping endMapping
public Integer relativeRid
public Integer absoluteRid
public Input 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 Input setOptional(boolean optional)
createAndNeuron.optional - public Input setNeuron(Neuron neuron)
neuron - public Input setMaxLowerWeightsSum(double maxLowerWeightsSum)
maxLowerWeightsSum - public Input setWeight(Double weight)
weight - public Input setMinInput(double minInput)
minInput - public Input setAbsoluteRid(Integer absoluteRid)
absoluteRid - public Input setRelativeRid(Integer relativeRid)
relativeRid - public Input setStartRangeMatch(Range.Operator rm)
public Input setEndRangeMatch(Range.Operator rm)
public Input setRangeMatch(Input.RangeRelation rr)
setRangeMatch is just a convenience function to call both setStartRangeMatch and setEndRangeMatch at the same time.rr - public Input setRangeOutput(boolean ro)
setRangeOutput is just a convenience function to call setStartRangeOutput and setEndRangeOutput at the same time.ro - public Input setStartRangeOutput(boolean ro)
ro - public Input setEndRangeOutput(boolean ro)
ro - public Input setStartRangeMapping(Range.Mapping startMapping)
startMapping - public Input setEndRangeMapping(Range.Mapping endMapping)
endMapping - public int compareTo(Input in)
compareTo in interface Comparable<Input>Copyright © 2017. All rights reserved.