net.sourceforge.cilib.neuralnetwork.generic.neuron
Class NeuronConfig
java.lang.Object
net.sourceforge.cilib.neuralnetwork.generic.neuron.NeuronConfig
- Direct Known Subclasses:
- BiasNeuronConfig, DotProductNeuronConfig, MNNNeuronAdapter
public abstract class NeuronConfig
- extends Object
- Author:
- stefanv
This class forms the base for any Neuron in a NN topology. It forms the extrinsic state to a NeuronPipeline
object. It also keeps track of the Neurons current and previous output and so doing supports recurrent
architectures.
It forms part of the Generic Framework and should mostly be used "as-is". In specific cases it can be extended, but an extension may not work
for all cases...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NeuronConfig
public NeuronConfig()
NeuronConfig
public NeuronConfig(int pipeIndex,
Type initValC,
Type initValT)
NeuronConfig
public NeuronConfig(NeuronConfig[] input,
Weight[] inputWeights,
boolean[] timeStepMap,
int patternInput,
Weight patternWeight,
Type initialOutput)
computeOutput
public abstract Type computeOutput(NeuronConfig n,
NNPattern p)
computeOutputFunctionDerivativeAtPos
public abstract Type computeOutputFunctionDerivativeAtPos(Type pos)
computeOutputFunctionDerivativeUsingLastOutput
public abstract Type computeOutputFunctionDerivativeUsingLastOutput(Type lastOutput)
computeActivationFunctionDerivativeAtPos
public abstract Type computeActivationFunctionDerivativeAtPos(Type pos)
computeActivationFunctionDerivativeUsingLastOutput
public abstract Type computeActivationFunctionDerivativeUsingLastOutput(Type lastOutput)
getCurrentOutput
public Type getCurrentOutput()
getInput
public NeuronConfig[] getInput()
getInputWeights
public Weight[] getInputWeights()
getPatternInputPos
public int getPatternInputPos()
getPatternWeight
public Weight getPatternWeight()
getTimeStepMap
public boolean[] getTimeStepMap()
getTminus1Output
public Type getTminus1Output()
setCurrentOutput
public void setCurrentOutput(Type currentOutput)
setInput
public void setInput(NeuronConfig[] input)
setInputWeights
public void setInputWeights(Weight[] inputWeights)
setPatternInputPos
public void setPatternInputPos(int patternInput)
setPatternWeight
public void setPatternWeight(Weight patternWeight)
setTimeStepMap
public void setTimeStepMap(boolean[] timeStepMap)
setTminus1Output
public void setTminus1Output(Type tminus1Output)
isOutputNeuron
public boolean isOutputNeuron()
setOutputNeuron
public void setOutputNeuron(boolean isOutputNeuron)
Copyright © 2009 CIRG. All Rights Reserved.