|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.train.BasicTraining
org.encog.neural.networks.training.propagation.Propagation
org.encog.neural.networks.training.propagation.scg.ScaledConjugateGradient
public class ScaledConjugateGradient
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. |
Fields inherited from class org.encog.neural.networks.training.propagation.Propagation |
---|
gradients, lastError, network |
Constructor Summary | |
---|---|
ScaledConjugateGradient(ContainsFlat network,
MLDataSet training)
Construct a training class. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.encog.neural.networks.training.propagation.Propagation |
---|
finishTraining, fixFlatSpot, getBatchSize, getCurrentFlatNetwork, getLastGradient, getMethod, getThreadCount, iteration, learn, learnLimited, report, rollIteration, setBatchSize, setErrorFunction, setThreadCount |
Methods inherited from class org.encog.ml.train.BasicTraining |
---|
addStrategy, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, postIteration, preIteration, setError, setIteration, setTraining |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.encog.ml.train.MLTrain |
---|
addStrategy, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, setError, setIteration |
Field Detail |
---|
protected static final double FIRST_SIGMA
protected static final double FIRST_LAMBDA
Constructor Detail |
---|
public ScaledConjugateGradient(ContainsFlat network, MLDataSet training)
network
- The network to train.training
- The training data.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |