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, setThreadCountaddStrategy, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, postIteration, preIteration, setError, setIteration, setTrainingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStrategy, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, setError, setIterationprotected 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 Propagationpublic void iteration()
iteration in interface MLTrainiteration in class Propagationpublic double updateWeight(double[] gradients,
double[] lastGradient,
int index)
updateWeight in class Propagationgradients - The current gradients.lastGradient - The last gradients.index - The weight index being updated.public void initOthers()
initOthers in class PropagationCopyright © 2014. All Rights Reserved.