Neuroph

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

public class MomentumBackpropagation
extends BackPropagation

The MomentumBackpropagation class implements backpropagation learning rule with momentum factor.

See Also:
Serialized Form

Field Summary
private  double momentum
          Momentum factor
private static long serialVersionUID
          The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
 
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(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, learnPattern, setMaxError
 
Methods inherited from class org.neuroph.core.learning.IterativeLearning
getCurrentIteration, getLearningRate, learn, setLearningRate, setMaxIterations
 
Methods inherited from class org.neuroph.core.learning.LearningRule
getTrainingSet, isStopped, notifyChange, run, 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

serialVersionUID

private static final long serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

See Also:
Constant Field Values

momentum

private double momentum
Momentum factor

Constructor Detail

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

Neuroph