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, previousEpochErrorcurrentIteration, learningRate, stopConditionslisteners, 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, calculateWeightChangesafterEpoch, beforeEpoch, doBatchWeightsUpdate, doLearningEpoch, getErrorFunction, getMaxError, getMinErrorChange, getMinErrorChangeIterationsCount, getMinErrorChangeIterationsLimit, getPreviousEpochError, getTotalNetworkError, isBatchMode, learn, learn, learnPattern, setBatchMode, setErrorFunction, setMaxError, setMinErrorChange, setMinErrorChangeIterationsLimitdoOneLearningIteration, getCurrentIteration, getLearningRate, getMaxIterations, hasReachedStopCondition, isIterationsLimited, isPausedLearning, learn, learn, pause, resume, setLearningRate, setMaxIterationsaddListener, fireLearningEvent, getNeuralNetwork, getTrainingSet, isStopped, onStop, removeListener, setNeuralNetwork, setTrainingSet, stopLearningpublic MomentumBackpropagation()
protected void calculateErrorAndUpdateHiddenNeurons()
calculateErrorAndUpdateHiddenNeurons in class BackPropagationpublic void calculateWeightChanges(Neuron neuron)
calculateWeightChanges in class LMSneuron - neuron to update weightsLMS.calculateWeightChanges(double[])public double getMomentum()
public void setMomentum(double momentum)
momentum - momentum factorprotected void onStart()
IterativeLearningonStart in class SupervisedLearningCopyright © 2019 Neuroph Project. All rights reserved.