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 |
---|---|
protected void |
calculateErrorAndUpdateHiddenNeurons()
This method implements weights adjustment for the hidden layers
Uses parallel processing on each layer with 100 or more neurons and a regular loop if less.
|
void |
calculateWeightChanges(Neuron neuron)
This method implements weights update procedure for the single neuron for
the back propagation with momentum factor
|
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
|
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()
protected void calculateErrorAndUpdateHiddenNeurons()
calculateErrorAndUpdateHiddenNeurons
in class BackPropagation
public void calculateWeightChanges(Neuron neuron)
calculateWeightChanges
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 © 2019 Neuroph Project. All rights reserved.