public class RpropTrainer extends BackpropTrainer
| Modifier and Type | Field and Description |
|---|---|
protected double |
maxUpdateValue
The maximal update value (default 50.0).
|
protected double |
minUpdateValue
The minimal update value (default 1.0E-6).
|
protected double |
rateDecFactor
The negative update value change (default 0.5).
|
protected double |
rateIncFactor
The positive update value change (default 1.2).
|
currentEpoch, epochs, learnRate, net, shuffle, stepMode, testData, trainingData, trainingSignalGenerator| Constructor and Description |
|---|
RpropTrainer()
Creates an Rprop trainer with a learn rate (initial update value) of 0.1.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
calcAdaptation(BrainPart part)
Calculates the adaptation value according to Rprop.
|
void |
fromXML(org.jdom2.Element element)
Reads attributes from XML.
|
double |
getMaxUpdateValue() |
double |
getMinUpdateValue() |
double |
getRateDecFactor() |
double |
getRateIncFactor() |
protected void |
reset()
Resets all neurons and links of the net for a fresh training procedure.
|
void |
setMaxUpdateValue(double maxUpdateValue) |
void |
setMinUpdateValue(double minUpdateValue) |
void |
setRateDecFactor(double rateDecFactor) |
void |
setRateIncFactor(double rateIncFactor) |
org.jdom2.Element |
toXML(org.jdom2.Element element)
Writes specific elements to XML tree.
|
endPattern, endTrain, train, train, trainclone, endBatch, getBatchSize, getEpochs, getLearnRate, getNetwork, getRank, getTestData, getTrainingData, getTrainingSignalGenerator, getWinningNeuron, setBatchSize, setEpochs, setLearnRate, setNetwork, setShuffle, setStepMode, setTestData, setTrainingData, setTrainingSignalGenerator, test, test, toString, train, trainPattern, updateLinks, updateNeuronsprotected double rateIncFactor
protected double rateDecFactor
protected double maxUpdateValue
protected double minUpdateValue
public RpropTrainer()
protected void reset()
reset in class BackpropTrainerprotected double calcAdaptation(BrainPart part)
calcAdaptation in class BackpropTrainerpart - the brain part to be adaptedpublic double getRateIncFactor()
public void setRateIncFactor(double rateIncFactor)
rateIncFactor - New value of property rateIncFactor.public double getRateDecFactor()
public void setRateDecFactor(double rateDecFactor)
rateDecFactor - New value of property rateDecFactor.public double getMaxUpdateValue()
public void setMaxUpdateValue(double maxUpdateValue)
maxUpdateValue - New value of property maxUpdateValue.public double getMinUpdateValue()
public void setMinUpdateValue(double minUpdateValue)
minUpdateValue - New value of property minUpdateValue.public org.jdom2.Element toXML(org.jdom2.Element element)