|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.flat.train.prop.TrainFlatNetworkProp
org.encog.neural.flat.train.prop.TrainFlatNetworkSCG
public class TrainFlatNetworkSCG
Train a network using scaled conjugate gradient.
| 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.flat.train.prop.TrainFlatNetworkProp |
|---|
currentError, gradients, lastError, network |
| Constructor Summary | |
|---|---|
TrainFlatNetworkSCG(FlatNetwork network,
MLDataSet training)
Construct the training object. |
|
| Method Summary | |
|---|---|
void |
calculateGradients()
Calculate the gradients. |
void |
initOthers()
Perform training method specific init. |
void |
iteration()
Perform one iteration. |
double |
updateWeight(double[] gradients,
double[] lastGradient,
int index)
Update the weights. |
| Methods inherited from class org.encog.neural.flat.train.prop.TrainFlatNetworkProp |
|---|
finishTraining, fixFlatSpot, getError, getErrorFunction, getIteration, getLastGradient, getNetwork, getNumThreads, getTraining, iteration, learn, learnLimited, report, setErrorFunction, setIteration, setNumThreads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final double FIRST_SIGMA
protected static final double FIRST_LAMBDA
| Constructor Detail |
|---|
public TrainFlatNetworkSCG(FlatNetwork network,
MLDataSet training)
network - The network to train.training - The training data to use.| Method Detail |
|---|
public void calculateGradients()
calculateGradients in class TrainFlatNetworkProppublic void iteration()
iteration in interface TrainFlatNetworkiteration in class TrainFlatNetworkProp
public double updateWeight(double[] gradients,
double[] lastGradient,
int index)
updateWeight in class TrainFlatNetworkPropgradients - The current gradients.lastGradient - The last gradients.index - The weight index being updated.
public void initOthers()
initOthers in class TrainFlatNetworkProp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||