aima.learning.neural
Class Layer
java.lang.Object
aima.learning.neural.Layer
public class Layer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Layer
public Layer(Matrix weightMatrix,
Vector biasVector,
ActivationFunction af)
Layer
public Layer(int numberOfNeurons,
int numberOfInputs,
double lowerLimitForWeights,
double upperLimitForWeights,
ActivationFunction af)
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)