aima.learning.neural
Class Layer

java.lang.Object
  extended by aima.learning.neural.Layer

public class Layer
extends java.lang.Object


Constructor Summary
Layer(int numberOfNeurons, int numberOfInputs, double lowerLimitForWeights, double upperLimitForWeights, ActivationFunction af)
           
Layer(Matrix weightMatrix, Vector biasVector, ActivationFunction af)
           
 
Method Summary
 void acceptNewBiasUpdate(Vector biasUpdate)
           
 void acceptNewWeightUpdate(Matrix weightUpdate)
           
 Vector errorVectorFrom(Vector target)
           
 Vector feedForward(Vector inputVector)
           
 ActivationFunction getActivationFunction()
           
 Vector getBiasVector()
           
 Vector getLastActivationValues()
           
 Vector getLastBiasUpdateVector()
           
 Vector getLastInducedField()
           
 Vector getLastInputValues()
           
 Matrix getLastWeightUpdateMatrix()
           
 Vector getPenultimateBiasUpdateVector()
           
 Matrix getPenultimateWeightUpdateMatrix()
           
 Matrix getWeightMatrix()
           
 int numberOfInputs()
           
 int numberOfNeurons()
           
 void setLastBiasUpdateVector(Vector v)
           
 void setLastWeightUpdateMatrix(Matrix m)
           
 void setPenultimateBiasUpdateVector(Vector v)
           
 void setPenultimateWeightUpdateMatrix(Matrix m)
           
 void updateBiases()
           
 void updateWeights()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer(Matrix weightMatrix,
             Vector biasVector,
             ActivationFunction af)

Layer

public Layer(int numberOfNeurons,
             int numberOfInputs,
             double lowerLimitForWeights,
             double upperLimitForWeights,
             ActivationFunction af)
Method Detail

feedForward

public Vector feedForward(Vector inputVector)

getWeightMatrix

public Matrix getWeightMatrix()

getBiasVector

public Vector getBiasVector()

numberOfNeurons

public int numberOfNeurons()

numberOfInputs

public int numberOfInputs()

getLastActivationValues

public Vector getLastActivationValues()

getLastInducedField

public Vector getLastInducedField()

getLastWeightUpdateMatrix

public Matrix getLastWeightUpdateMatrix()

setLastWeightUpdateMatrix

public void setLastWeightUpdateMatrix(Matrix m)

getPenultimateWeightUpdateMatrix

public Matrix getPenultimateWeightUpdateMatrix()

setPenultimateWeightUpdateMatrix

public void setPenultimateWeightUpdateMatrix(Matrix m)

getLastBiasUpdateVector

public Vector getLastBiasUpdateVector()

setLastBiasUpdateVector

public void setLastBiasUpdateVector(Vector v)

getPenultimateBiasUpdateVector

public Vector getPenultimateBiasUpdateVector()

setPenultimateBiasUpdateVector

public void setPenultimateBiasUpdateVector(Vector v)

updateWeights

public void updateWeights()

updateBiases

public void updateBiases()

getLastInputValues

public Vector getLastInputValues()

getActivationFunction

public ActivationFunction getActivationFunction()

acceptNewWeightUpdate

public void acceptNewWeightUpdate(Matrix weightUpdate)

acceptNewBiasUpdate

public void acceptNewBiasUpdate(Vector biasUpdate)

errorVectorFrom

public Vector errorVectorFrom(Vector target)