public class BackPropagation extends LMS
maxError, previousEpochError
currentIteration, learningRate, stopConditions
listeners, neuralNetwork, trainingSet
Constructor and Description |
---|
BackPropagation()
Creates new instance of BackPropagation learning
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateErrorAndUpdateHiddenNeurons()
This method implements weights adjustment for the hidden layers
|
protected void |
calculateErrorAndUpdateOutputNeurons(double[] outputError)
This method implements weights update procedure for the output neurons
Calculates delta/error and calls updateNeuronWeights to update neuron's weights
for each output neuron
|
protected double |
calculateHiddenNeuronError(Neuron neuron)
Calculates and returns the neuron's error (neuron's delta) for the given neuron param
|
protected void |
calculateWeightChanges(double[] outputError)
This method implements weight update procedure for the whole network
for the specified output error vector.
|
calculateWeightChanges
afterEpoch, beforeEpoch, doBatchWeightsUpdate, doLearningEpoch, getErrorFunction, getMaxError, getMinErrorChange, getMinErrorChangeIterationsCount, getMinErrorChangeIterationsLimit, getPreviousEpochError, getTotalNetworkError, isBatchMode, learn, learn, learnPattern, onStart, 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 BackPropagation()
protected void calculateWeightChanges(double[] outputError)
calculateWeightChanges
in class LMS
outputError
- output error vectorlearnPattern
protected void calculateErrorAndUpdateOutputNeurons(double[] outputError)
outputError
- error vector for output neuronsprotected void calculateErrorAndUpdateHiddenNeurons()
protected double calculateHiddenNeuronError(Neuron neuron)
neuron
- neuron to calculate error forCopyright © 2019 Neuroph Project. All rights reserved.