org.encog.neural.networks.training.propagation.scg
public class ScaledConjugateGradient extends Propagation
Modifier and Type | Field and Description |
---|---|
protected static double |
FIRST_LAMBDA
The starting value for lambda.
|
protected static double |
FIRST_SIGMA
The starting value for sigma.
|
gradients, network
Constructor and Description |
---|
ScaledConjugateGradient(ContainsFlat network,
MLDataSet training)
Construct a training class.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateGradients()
Calculate the gradients.
|
boolean |
canContinue()
This training type does not support training continue.
|
void |
initOthers()
Unused.
|
void |
iteration()
Perform one iteration.
|
TrainingContinuation |
pause()
This training type does not support training continue.
|
void |
resume(TrainingContinuation state)
This training type does not support training continue.
|
double |
updateWeight(double[] gradients,
double[] lastGradient,
int index)
Update the weights.
|
finishTraining, fixFlatSpot, getBatchSize, getCurrentFlatNetwork, getLastGradient, getMethod, getThreadCount, iteration, learn, learnLimited, report, rollIteration, setBatchSize, setErrorFunction, setThreadCount
addStrategy, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, postIteration, preIteration, setError, setIteration, setTraining
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStrategy, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, setError, setIteration
protected static final double FIRST_SIGMA
protected static final double FIRST_LAMBDA
public ScaledConjugateGradient(ContainsFlat network, MLDataSet training)
network
- The network to train.training
- The training data.public boolean canContinue()
public TrainingContinuation pause()
public void resume(TrainingContinuation state)
state
- Not used.public void calculateGradients()
calculateGradients
in class Propagation
public void iteration()
iteration
in interface MLTrain
iteration
in class Propagation
public double updateWeight(double[] gradients, double[] lastGradient, int index)
updateWeight
in class Propagation
gradients
- The current gradients.lastGradient
- The last gradients.index
- The weight index being updated.public void initOthers()
initOthers
in class Propagation
Copyright © 2014. All Rights Reserved.