org.neuroph.nnet.learning
Class BinaryDeltaRule

java.lang.Object
  extended by org.neuroph.core.learning.LearningRule
      extended by org.neuroph.core.learning.IterativeLearning
          extended by org.neuroph.core.learning.SupervisedLearning
              extended by org.neuroph.nnet.learning.LMS
                  extended by org.neuroph.nnet.learning.PerceptronLearning
                      extended by org.neuroph.nnet.learning.BinaryDeltaRule
All Implemented Interfaces:
Serializable

public class BinaryDeltaRule
extends PerceptronLearning

Delta rule learning algorithm for perceptrons with step functions. The difference to Perceptronlearning is that Delta Rule calculates error before the non-lnear step transfer function

Author:
Zoran Sevarac
See Also:
Serialized Form

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
BinaryDeltaRule()
          Creates new BinaryDeltaRule learning
 
Method Summary
 double getErrorCorrection()
          Gets the errorCorrection parametar
 void setErrorCorrection(double errorCorrection)
          Sets the errorCorrection parametar
protected  void updateNetworkWeights(double[] patternError)
          This method implements weight update procedure for the whole network for this learning rule
 
Methods inherited from class org.neuroph.nnet.learning.PerceptronLearning
updateNeuronWeights
 
Methods inherited from class org.neuroph.core.learning.SupervisedLearning
addToSquaredErrorSum, afterEpoch, beforeEpoch, calculateOutputError, doBatchWeightsUpdate, doLearningEpoch, errorChangeStalled, getMaxError, getMinErrorChange, getMinErrorChangeIterationsCount, getMinErrorChangeIterationsLimit, getPreviousEpochError, getTotalNetworkError, hasReachedStopCondition, isInBatchMode, learn, learn, learnPattern, onStart, setBatchMode, setMaxError, setMinErrorChange, setMinErrorChangeIterationsLimit
 
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

BinaryDeltaRule

public BinaryDeltaRule()
Creates new BinaryDeltaRule learning

Method Detail

updateNetworkWeights

protected void updateNetworkWeights(double[] patternError)
This method implements weight update procedure for the whole network for this learning rule

Overrides:
updateNetworkWeights in class LMS
Parameters:
patternError - single pattern error vector if the output is 0 and required value is 1, increase rthe weights if the output is 1 and required value is 0, decrease the weights otherwice leave weights unchanged
See Also:
SupervisedLearning.calculateOutputError(double[], double[]), learnPattern

getErrorCorrection

public double getErrorCorrection()
Gets the errorCorrection parametar

Returns:
errorCorrection parametar

setErrorCorrection

public void setErrorCorrection(double errorCorrection)
Sets the errorCorrection parametar

Parameters:
errorCorrection - the value for errorCorrection parametar


Copyright © 2012. All Rights Reserved.