public class ResilientPropagation extends BackPropagation
Modifier and Type | Class and Description |
---|---|
class |
ResilientPropagation.ResilientWeightTrainingtData |
maxError, previousEpochError
currentIteration, learningRate, stopConditions
listeners, neuralNetwork, trainingSet
Constructor and Description |
---|
ResilientPropagation() |
Modifier and Type | Method and Description |
---|---|
void |
calculateWeightChanges(Neuron neuron)
Calculate and sum gradients for each neuron's weight, the actual weight update is done in batch mode.
|
protected void |
doBatchWeightsUpdate()
This method updates network weights in batch mode - use accumulated weights change stored in Weight.deltaWeight
It is executed after each learning epoch, only if learning is done in batch mode.
|
double |
getDecreaseFactor() |
double |
getIncreaseFactor() |
double |
getInitialDelta() |
double |
getMaxDelta() |
double |
getMinDelta() |
protected void |
onStart()
This method is executed when learning starts, before the first epoch.
|
protected void |
resillientWeightUpdate(Weight weight)
Weight update by done by ResilientPropagation learning rule
Executed at the end of epoch (in batch mode)
|
void |
setBatchMode(boolean batchMode)
Sets batch mode on/off (true/false)
|
void |
setDecreaseFactor(double decreaseFactor) |
void |
setIncreaseFactor(double increaseFactor) |
void |
setInitialDelta(double initialDelta) |
void |
setMaxDelta(double maxDelta) |
void |
setMinDelta(double minDelta) |
calculateErrorAndUpdateHiddenNeurons, calculateErrorAndUpdateOutputNeurons, calculateHiddenNeuronError, calculateWeightChanges
afterEpoch, beforeEpoch, doLearningEpoch, getErrorFunction, getMaxError, getMinErrorChange, getMinErrorChangeIterationsCount, getMinErrorChangeIterationsLimit, getPreviousEpochError, getTotalNetworkError, isBatchMode, learn, learn, learnPattern, 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
protected void onStart()
IterativeLearning
onStart
in class SupervisedLearning
public void calculateWeightChanges(Neuron neuron)
calculateWeightChanges
in class LMS
neuron
- neuron to update weightsresillientWeightUpdate(org.neuroph.core.Weight)
protected void doBatchWeightsUpdate()
SupervisedLearning
doBatchWeightsUpdate
in class SupervisedLearning
SupervisedLearning.doLearningEpoch(org.neuroph.core.data.DataSet)
protected void resillientWeightUpdate(Weight weight)
weight
- public double getDecreaseFactor()
public void setDecreaseFactor(double decreaseFactor)
public double getIncreaseFactor()
public void setIncreaseFactor(double increaseFactor)
public double getInitialDelta()
public void setInitialDelta(double initialDelta)
public double getMaxDelta()
public void setMaxDelta(double maxDelta)
public double getMinDelta()
public void setMinDelta(double minDelta)
public void setBatchMode(boolean batchMode)
SupervisedLearning
setBatchMode
in class SupervisedLearning
batchMode
- batch mode settingCopyright © 2019 Neuroph Project. All rights reserved.