public class BackpropTrainer extends Trainer
currentEpoch, epochs, learnRate, net, shuffle, stepMode, testData, trainingData, trainingSignalGenerator| Constructor and Description |
|---|
BackpropTrainer() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
calcAdaptation(BrainPart part)
Calculates the adaptation value being simply the gradient.
|
protected void |
endPattern()
Resets the error signals of all neurons.
|
protected void |
endTrain()
Does nothing.
|
protected void |
reset()
Resets all neurons and links of the net for a fresh training procedure.
|
protected void |
train(Link link)
Calculates the error signal, back-propagates it to the source neuron, and accumulates the gradient information
of the link.
|
protected void |
train(java.util.List<java.lang.Double> input,
java.util.List<java.lang.Double> target)
Performs training of a single pattern with the following steps:
|
protected void |
train(Neuron neuron)
Accumulates the gradient of the neuron.
|
clone, endBatch, fromXML, getBatchSize, getEpochs, getLearnRate, getNetwork, getRank, getTestData, getTrainingData, getTrainingSignalGenerator, getWinningNeuron, setBatchSize, setEpochs, setLearnRate, setNetwork, setShuffle, setStepMode, setTestData, setTrainingData, setTrainingSignalGenerator, test, test, toString, toXML, train, trainPattern, updateLinks, updateNeuronsprotected void reset()
protected void train(java.util.List<java.lang.Double> input,
java.util.List<java.lang.Double> target)
TrainingSignalGeneratorprotected void endPattern()
protected void train(Neuron neuron)
neuron - the neuron (bias) to be trainedprotected void train(Link link)
link - the link to be trainedprotected double calcAdaptation(BrainPart part)
calcAdaptation in class Trainerpart - the brain part to be adapted