org.neuroph.nnet.learning
Class MomentumBackpropagation

java.lang.Object
  extended by java.util.Observable
      extended by org.neuroph.core.learning.LearningRule
          extended by org.neuroph.core.learning.IterativeLearning
              extended by org.neuroph.core.learning.SupervisedLearning
                  extended by org.neuroph.nnet.learning.LMS
                      extended by org.neuroph.nnet.learning.SigmoidDeltaRule
                          extended by org.neuroph.nnet.learning.BackPropagation
                              extended by org.neuroph.nnet.learning.MomentumBackpropagation
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable
Direct Known Subclasses:
DynamicBackPropagation

public class MomentumBackpropagation
extends BackPropagation

Backpropagation learning rule with momentum.

Author:
Zoran Sevarac
See Also:
Serialized Form

Field Summary
protected  double momentum
          Momentum factor
 
Fields inherited from class org.neuroph.core.learning.SupervisedLearning
maxError, totalNetworkError
 
Fields inherited from class org.neuroph.core.learning.IterativeLearning
currentIteration, iterationsLimited, learningRate, maxIterations
 
Fields inherited from class org.neuroph.core.learning.LearningRule
neuralNetwork
 
Constructor Summary
MomentumBackpropagation()
          Creates new instance of MomentumBackpropagation learning
MomentumBackpropagation(NeuralNetwork neuralNetwork)
          Creates new instance of MomentumBackpropagation learning for the specified neural network
 
Method Summary
 double getMomentum()
          Returns the momentum factor
 void setMomentum(double momentum)
          Sets the momentum factor
protected  void updateNeuronWeights(Neuron neuron)
          This method implements weights update procedure for the single neuron for the backpropagation with momentum factor
 
Methods inherited from class org.neuroph.nnet.learning.BackPropagation
updateNetworkWeights
 
Methods inherited from class org.neuroph.nnet.learning.SigmoidDeltaRule
adjustOutputNeurons
 
Methods inherited from class org.neuroph.nnet.learning.LMS
updateTotalNetworkError
 
Methods inherited from class org.neuroph.core.learning.SupervisedLearning
doLearningEpoch, getPatternError, getTotalNetworkError, learn, learn, learnPattern, setMaxError
 
Methods inherited from class org.neuroph.core.learning.IterativeLearning
doOneLearningIteration, getCurrentIteration, getLearningRate, isPausedLearning, learn, learn, pause, resume, setLearningRate, setMaxIterations
 
Methods inherited from class org.neuroph.core.learning.LearningRule
getNeuralNetwork, getTrainingSet, isStopped, notifyChange, run, setNeuralNetwork, setTrainingSet, stopLearning
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

momentum

protected double momentum
Momentum factor

Constructor Detail

MomentumBackpropagation

public MomentumBackpropagation()
Creates new instance of MomentumBackpropagation learning


MomentumBackpropagation

public MomentumBackpropagation(NeuralNetwork neuralNetwork)
Creates new instance of MomentumBackpropagation learning for the specified neural network

Parameters:
neuralNetwork - neural network to train
Method Detail

updateNeuronWeights

protected void updateNeuronWeights(Neuron neuron)
This method implements weights update procedure for the single neuron for the backpropagation with momentum factor

Overrides:
updateNeuronWeights in class LMS
Parameters:
neuron - neuron to update weights

getMomentum

public double getMomentum()
Returns the momentum factor

Returns:
momentum factor

setMomentum

public void setMomentum(double momentum)
Sets the momentum factor

Parameters:
momentum - momentum factor