|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.learning.LearningRule
org.neuroph.core.learning.IterativeLearning
org.neuroph.core.learning.SupervisedLearning
org.neuroph.nnet.learning.LMS
public class LMS
LMS learning rule for neural networks.
Field Summary |
---|
Fields inherited from class org.neuroph.core.learning.SupervisedLearning |
---|
maxError, outputError, previousEpochError, totalNetworkError, totalSquaredErrorSum |
Fields inherited from class org.neuroph.core.learning.IterativeLearning |
---|
currentIteration, iterationsLimited, learningRate, maxIterations |
Fields inherited from class org.neuroph.core.learning.LearningRule |
---|
listeners, neuralNetwork |
Constructor Summary | |
---|---|
LMS()
Creates a new LMS learning rule This learning rule is used to train Adaline neural network, and this class is base for all LMS based learning rules like PerceptronLearning, DeltaRule, SigmoidDeltaRule, Backpropagation etc. |
Method Summary | |
---|---|
protected void |
updateNetworkWeights(double[] outputError)
This method implements the weights update procedure for the whole network for the given output error vector. |
protected void |
updateNeuronWeights(Neuron neuron)
This method implements weights update procedure for the single neuron It iterates through all neuron's input connections, and calculates/set weight change for each weight using formula deltaWeight = learningRate * neuronError * input where neuronError is difference between desired and actual output for specific neuron neuronError = desiredOutput[i] - actualOutput[i] (see method SuprevisedLearning.calculateOutputError) |
Methods inherited from class org.neuroph.core.learning.IterativeLearning |
---|
doOneLearningIteration, getCurrentIteration, getLearningRate, isPausedLearning, learn, learn, pause, resume, setLearningRate, setMaxIterations |
Methods inherited from class org.neuroph.core.learning.LearningRule |
---|
addListener, fireLearningEvent, getNeuralNetwork, getTrainingSet, isStopped, removeListener, setNeuralNetwork, setTrainingSet, stopLearning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LMS()
Method Detail |
---|
protected void updateNetworkWeights(double[] outputError)
updateNetworkWeights
in class SupervisedLearning
outputError
- output error vector for some network input- the difference between desired and actual outputSupervisedLearning.calculateOutputError(double[], double[])
,
learnPattern
protected void updateNeuronWeights(Neuron neuron)
neuron
- neuron to update weightsupdateNetworkWeights(double[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |