org.neuroph.nnet.learning
Class MomentumBackpropagation
java.lang.Object
java.util.Observable
org.neuroph.core.learning.LearningRule
org.neuroph.core.learning.IterativeLearning
org.neuroph.core.learning.SupervisedLearning
org.neuroph.nnet.learning.LMS
org.neuroph.nnet.learning.SigmoidDeltaRule
org.neuroph.nnet.learning.BackPropagation
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 |
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 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 |
momentum
protected double momentum
- Momentum factor
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
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