The Encog Project

org.encog.neural.networks.training.propagation.scg
Class ScaledConjugateGradient

java.lang.Object
  extended by org.encog.neural.networks.training.BasicTraining
      extended by org.encog.neural.networks.training.propagation.Propagation
          extended by org.encog.neural.networks.training.propagation.scg.ScaledConjugateGradient
All Implemented Interfaces:
Train

public class ScaledConjugateGradient
extends Propagation

This is a training class that makes use of scaled conjugate gradient methods. It is a very fast and efficient training algorithm.


Field Summary
protected static double FIRST_LAMBDA
          The starting value for lambda.
protected static double FIRST_SIGMA
          The starting value for sigma.
 
Constructor Summary
ScaledConjugateGradient(BasicNetwork network, NeuralDataSet training)
          Construct a training class.
 
Method Summary
 void iteration()
          Perform one iteration.
 void performIteration(CalculateGradient prop, double[] weights)
          Not used.
 
Methods inherited from class org.encog.neural.networks.training.propagation.Propagation
canContinue, getNetwork, getNumThreads, isValidResume, pause, resume, setNumThreads
 
Methods inherited from class org.encog.neural.networks.training.BasicTraining
addStrategy, finishTraining, getError, getStrategies, getTraining, postIteration, preIteration, setError, setTraining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST_SIGMA

protected static final double FIRST_SIGMA
The starting value for sigma.

See Also:
Constant Field Values

FIRST_LAMBDA

protected static final double FIRST_LAMBDA
The starting value for lambda.

See Also:
Constant Field Values
Constructor Detail

ScaledConjugateGradient

public ScaledConjugateGradient(BasicNetwork network,
                               NeuralDataSet training)
Construct a training class.

Parameters:
network - The network to train.
training - The training data.
Method Detail

iteration

public void iteration()
Perform one iteration.

Specified by:
iteration in interface Train
Overrides:
iteration in class Propagation

performIteration

public void performIteration(CalculateGradient prop,
                             double[] weights)
Not used.

Specified by:
performIteration in class Propagation
Parameters:
prop - Not used.
weights - Not used.

The Encog Project