Package network.aika.neuron.conjunctive
Class PatternNeuron
java.lang.Object
network.aika.neuron.Neuron<S,A>
network.aika.neuron.conjunctive.ConjunctiveNeuron<PatternSynapse,PatternActivation>
network.aika.neuron.conjunctive.PatternNeuron
- All Implemented Interfaces:
Axon
,PatternAxon
,Writable
public class PatternNeuron
extends ConjunctiveNeuron<PatternSynapse,PatternActivation>
implements PatternAxon
- Author:
- Lukas Molzberger
-
Field Summary
Fields inherited from class network.aika.neuron.Neuron
allowTraining, bias, frequency, inputSynapses, isNetworkInput, lock, outputSynapses, sampleSpace
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
biasUpdateOnFinalActivations
(PositiveFeedbackSynapse s, double u) instantiateTemplate
(boolean addProvider) void
readFields
(DataInput in, Model m) Deserialize the fields of this object fromin
.void
setTokenLabel
(String tokenLabel) void
void
write
(DataOutput out) Serialize the fields of this object toout
.Methods inherited from class network.aika.neuron.conjunctive.ConjunctiveNeuron
addInactiveLinks, getActivationFunction, initFromTemplate, limitBias
Methods inherited from class network.aika.neuron.Neuron
addInputSynapse, addOutputSynapse, applyMovingAverage, biasUpdate, checkTemplateInductionThreshold, containsInputSynapse, containsOutputSynapse, count, getActivations, getBias, getCandidateGradient, getCustomData, getFrequency, getFrequency, getId, getInputSynapse, getInputSynapses, getLabel, getLock, getModel, getOutputSynapse, getOutputSynapses, getProbability, getProvider, getRetrievalCount, getSampleSpace, getSurprisal, getTargetSynapses, getTemplate, getTemplateGroup, getTemplateInfo, initFromTemplate, isAllowTraining, isModified, isNetworkInput, isTemplate, reactivate, read, register, removeInputSynapse, removeOutputSynapse, resetModified, setAllowTraining, setCustomData, setFrequency, setLabel, setModified, setNetworkInput, setProvider, suspend, templateNeuronMatches, toKeyString, toString
-
Constructor Details
-
PatternNeuron
public PatternNeuron() -
PatternNeuron
-
PatternNeuron
-
-
Method Details
-
biasUpdateOnFinalActivations
-
createActivation
- Specified by:
createActivation
in classNeuron<PatternSynapse,
PatternActivation>
-
instantiateTemplate
- Specified by:
instantiateTemplate
in classNeuron<PatternSynapse,
PatternActivation>
-
updateAllowPropagate
public void updateAllowPropagate()- Overrides:
updateAllowPropagate
in classConjunctiveNeuron<PatternSynapse,
PatternActivation>
-
setTokenLabel
-
getTokenLabel
-
write
Description copied from interface:Writable
Serialize the fields of this object toout
.- Specified by:
write
in interfaceWritable
- Overrides:
write
in classNeuron<PatternSynapse,
PatternActivation> - 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 classNeuron<PatternSynapse,
PatternActivation> - Parameters:
in
-DataInput
to deseriablize this object from.- Throws:
Exception
-