Package network.aika.neuron.conjunctive
Class SamePatternSynapse
java.lang.Object
network.aika.neuron.Synapse<S,I,O,L,IA,OA>
network.aika.neuron.conjunctive.ConjunctiveSynapse<S,I,BindingNeuron,L,IA,BindingActivation>
network.aika.neuron.conjunctive.BindingNeuronSynapse<SamePatternSynapse,BindingNeuron,SamePatternLink,BindingActivation>
network.aika.neuron.conjunctive.SamePatternSynapse
- All Implemented Interfaces:
Writable
public class SamePatternSynapse
extends BindingNeuronSynapse<SamePatternSynapse,BindingNeuron,SamePatternLink,BindingActivation>
The Same Pattern Binding Neuron Synapse is an inner synapse between two binding neurons of the same pattern.
- Author:
- Lukas Molzberger
-
Field Summary
Fields inherited from class network.aika.neuron.conjunctive.ConjunctiveSynapse
allowPropagate
Fields inherited from class network.aika.neuron.Synapse
allowTraining, frequencyINegOPos, frequencyIPosONeg, frequencyIPosOPos, input, output, sampleSpace, template, weight
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
createLink
(BindingActivation input, BindingActivation output) protected double
void
readFields
(DataInput in, Model m) Deserialize the fields of this object fromin
.void
setAllowLooseLinking
(boolean allowLooseLinking) void
setLooseLinkingRange
(int looseLinkingRange) void
write
(DataOutput out) Serialize the fields of this object toout
.Methods inherited from class network.aika.neuron.conjunctive.BindingNeuronSynapse
checkCommonLinkingPreConditions
Methods inherited from class network.aika.neuron.conjunctive.ConjunctiveSynapse
allowPropagate, checkConstraints, setAllowPropagate, setModified, updateWeight
Methods inherited from class network.aika.neuron.Synapse
applyMovingAverage, checkTemplateInductionThreshold, checkTemplateLinkingPreConditions, count, forAllLinks, getFrequency, getInput, getModel, getOutput, getPInput, getPOutput, getProbability, getSampleSpace, getSurprisal, getTemplate, getTemplateInfo, getTemplateSynapseId, getWeight, initFromTemplate, instantiateTemplate, isAllowTraining, isInputLinked, isNegative, isOfTemplate, isOutputLinked, isRecurrent, isTemplate, isZero, linkExists, linkInput, linkOutput, read, setAllowTraining, setFrequency, setInput, setOutput, setWeight, toString, transition, unlinkInput, unlinkOutput, weightUpdate
-
Constructor Details
-
SamePatternSynapse
public SamePatternSynapse()
-
-
Method Details
-
createLink
- Specified by:
createLink
in classSynapse<SamePatternSynapse,
BindingNeuron, BindingNeuron, SamePatternLink, BindingActivation, BindingActivation>
-
getSortingWeight
protected double getSortingWeight() -
setLooseLinkingRange
public void setLooseLinkingRange(int looseLinkingRange) -
getLooseLinkingRange
-
setAllowLooseLinking
public void setAllowLooseLinking(boolean allowLooseLinking) -
allowLooseLinking
public boolean allowLooseLinking() -
checkLinkingPreConditions
-
getPropagateTransitions
- Specified by:
getPropagateTransitions
in classSynapse<SamePatternSynapse,
BindingNeuron, BindingNeuron, SamePatternLink, BindingActivation, BindingActivation>
-
getCheckTransitions
- Specified by:
getCheckTransitions
in classSynapse<SamePatternSynapse,
BindingNeuron, BindingNeuron, SamePatternLink, BindingActivation, BindingActivation>
-
checkRelatedBindingSignal
-
write
Description copied from interface:Writable
Serialize the fields of this object toout
.- Specified by:
write
in interfaceWritable
- Overrides:
write
in classConjunctiveSynapse<SamePatternSynapse,
BindingNeuron, BindingNeuron, SamePatternLink, BindingActivation, BindingActivation> - Parameters:
out
-DataOuput
to serialize this object into.- Throws:
IOException
-
readFields
Description copied from interface:Writable
Deserialize the fields of this object fromin
.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFields
in interfaceWritable
- Overrides:
readFields
in classConjunctiveSynapse<SamePatternSynapse,
BindingNeuron, BindingNeuron, SamePatternLink, BindingActivation, BindingActivation> - Parameters:
in
-DataInput
to deseriablize this object from.- Throws:
IOException
-