org.neuroph.nnet.learning
Class MomentumBackpropagation
java.lang.Object
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:
- Serializable
- 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 |
protected void |
onStart()
This method is executed when learning starts, before the first epoch. |
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 back propagation with momentum factor |
Methods inherited from class org.neuroph.core.learning.SupervisedLearning |
addToSquaredErrorSum, afterEpoch, beforeEpoch, calculateOutputError, doBatchWeightsUpdate, doLearningEpoch, errorChangeStalled, getMaxError, getMinErrorChange, getMinErrorChangeIterationsCount, getMinErrorChangeIterationsLimit, getPreviousEpochError, getTotalNetworkError, hasReachedStopCondition, isInBatchMode, learn, learn, learnPattern, setBatchMode, setMaxError, setMinErrorChange, setMinErrorChangeIterationsLimit |
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
updateNeuronWeights
protected void updateNeuronWeights(Neuron neuron)
- This method implements weights update procedure for the single neuron for
the back propagation with momentum factor
- Overrides:
updateNeuronWeights
in class LMS
- Parameters:
neuron
- neuron to update weights- See Also:
LMS.updateNetworkWeights(double[])
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
onStart
protected void onStart()
- Description copied from class:
IterativeLearning
- This method is executed when learning starts, before the first epoch.
Used for initialisation.
- Overrides:
onStart
in class SupervisedLearning
Copyright © 2012. All Rights Reserved.