public class MomentumBackpropagation extends BackPropagation
Modifier and Type | Class and Description |
---|---|
static class |
MomentumBackpropagation.MomentumTrainingData |
Modifier and Type | Field and Description |
---|---|
protected double |
momentum
Momentum factor
|
maxError, previousEpochError
currentIteration, learningRate, stopConditions
listeners, neuralNetwork, trainingSet
Constructor and Description |
---|
MomentumBackpropagation()
Creates new instance of MomentumBackpropagation learning
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
updateNeuronWeights(Neuron neuron)
This method implements weights update procedure for the single neuron for
the back propagation with momentum factor
|
calculateErrorAndUpdateHiddenNeurons, calculateErrorAndUpdateOutputNeurons, calculateHiddenNeuronError, calculateWeightChanges
afterEpoch, beforeEpoch, doBatchWeightsUpdate, doLearningEpoch, getErrorFunction, getMaxError, getMinErrorChange, getMinErrorChangeIterationsCount, getMinErrorChangeIterationsLimit, getPreviousEpochError, getTotalNetworkError, isBatchMode, learn, learn, learnPattern, setBatchMode, setErrorFunction, setMaxError, setMinErrorChange, setMinErrorChangeIterationsLimit
doOneLearningIteration, getCurrentIteration, getLearningRate, getMaxIterations, hasReachedStopCondition, isIterationsLimited, isPausedLearning, learn, learn, pause, resume, setLearningRate, setMaxIterations
addListener, fireLearningEvent, getNeuralNetwork, getTrainingSet, isStopped, onStop, removeListener, setNeuralNetwork, setTrainingSet, stopLearning
public MomentumBackpropagation()
public void updateNeuronWeights(Neuron neuron)
updateNeuronWeights
in class LMS
neuron
- neuron to update weightsLMS.calculateWeightChanges(double[])
public double getMomentum()
public void setMomentum(double momentum)
momentum
- momentum factorprotected void onStart()
IterativeLearning
onStart
in class SupervisedLearning
Copyright © 2017 Neuroph Project. All rights reserved.