net.sourceforge.cilib.neuralnetwork.generic.neuron
Class NeuronConfig

java.lang.Object
  extended by 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...

Constructor Summary
NeuronConfig()
           
NeuronConfig(int pipeIndex, Type initValC, Type initValT)
           
NeuronConfig(NeuronConfig[] input, Weight[] inputWeights, boolean[] timeStepMap, int patternInput, Weight patternWeight, Type initialOutput)
           
 
Method Summary
abstract  Type computeActivationFunctionDerivativeAtPos(Type pos)
           
abstract  Type computeActivationFunctionDerivativeUsingLastOutput(Type lastOutput)
           
abstract  Type computeOutput(NeuronConfig n, NNPattern p)
           
abstract  Type computeOutputFunctionDerivativeAtPos(Type pos)
           
abstract  Type computeOutputFunctionDerivativeUsingLastOutput(Type lastOutput)
           
 Type getCurrentOutput()
           
 NeuronConfig[] getInput()
           
 Weight[] getInputWeights()
           
 int getPatternInputPos()
           
 Weight getPatternWeight()
           
 boolean[] getTimeStepMap()
           
 Type getTminus1Output()
           
 boolean isOutputNeuron()
           
 void setCurrentOutput(Type currentOutput)
           
 void setInput(NeuronConfig[] input)
           
 void setInputWeights(Weight[] inputWeights)
           
 void setOutputNeuron(boolean isOutputNeuron)
           
 void setPatternInputPos(int patternInput)
           
 void setPatternWeight(Weight patternWeight)
           
 void setTimeStepMap(boolean[] timeStepMap)
           
 void setTminus1Output(Type tminus1Output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.