aima.learning.neural
Class BackPropLearning

java.lang.Object
  extended by aima.learning.neural.BackPropLearning
All Implemented Interfaces:
NNTrainingScheme

public class BackPropLearning
extends java.lang.Object
implements NNTrainingScheme


Constructor Summary
BackPropLearning(double learningRate, double momentum)
           
 
Method Summary
static Vector calculateBiasUpdates(LayerSensitivity layerSensitivity, double alpha)
           
 Vector calculateBiasUpdates(LayerSensitivity layerSensitivity, double alpha, double momentum)
           
static Matrix calculateWeightUpdates(LayerSensitivity layerSensitivity, Vector previousLayerActivationOrInput, double alpha)
           
 Matrix calculateWeightUpdates(LayerSensitivity layerSensitivity, Vector previousLayerActivationOrInput, double alpha, double momentum)
           
 void processError(FeedForwardNeuralNetwork network, Vector error)
           
 Vector processInput(FeedForwardNeuralNetwork network, Vector input)
           
 void setNeuralNetwork(FunctionApproximator fapp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackPropLearning

public BackPropLearning(double learningRate,
                        double momentum)
Method Detail

setNeuralNetwork

public void setNeuralNetwork(FunctionApproximator fapp)
Specified by:
setNeuralNetwork in interface NNTrainingScheme

processInput

public Vector processInput(FeedForwardNeuralNetwork network,
                           Vector input)
Specified by:
processInput in interface NNTrainingScheme

processError

public void processError(FeedForwardNeuralNetwork network,
                         Vector error)
Specified by:
processError in interface NNTrainingScheme

calculateWeightUpdates

public Matrix calculateWeightUpdates(LayerSensitivity layerSensitivity,
                                     Vector previousLayerActivationOrInput,
                                     double alpha,
                                     double momentum)

calculateWeightUpdates

public static Matrix calculateWeightUpdates(LayerSensitivity layerSensitivity,
                                            Vector previousLayerActivationOrInput,
                                            double alpha)

calculateBiasUpdates

public Vector calculateBiasUpdates(LayerSensitivity layerSensitivity,
                                   double alpha,
                                   double momentum)

calculateBiasUpdates

public static Vector calculateBiasUpdates(LayerSensitivity layerSensitivity,
                                          double alpha)