|
||||||||||
| 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.TrainFlatNetworkBackPropagation
public class TrainFlatNetworkBackPropagation
Train a flat network, using backpropagation.
| Field Summary |
|---|
| Fields inherited from class org.encog.neural.flat.train.prop.TrainFlatNetworkProp |
|---|
currentError, gradients, lastError, network |
| Constructor Summary | |
|---|---|
TrainFlatNetworkBackPropagation(FlatNetwork network,
MLDataSet training,
double theLearningRate,
double theMomentum)
Construct a backprop trainer for flat networks. |
|
| Method Summary | |
|---|---|
double[] |
getLastDelta()
|
double |
getLearningRate()
|
double |
getMomentum()
|
void |
initOthers()
Perform training method specific init. |
void |
setLastDelta(double[] ds)
Set the last delta. |
void |
setLearningRate(double rate)
Set the learning rate. |
void |
setMomentum(double rate)
Set the momentum. |
double |
updateWeight(double[] gradients,
double[] lastGradient,
int index)
Update a weight. |
| Methods inherited from class org.encog.neural.flat.train.prop.TrainFlatNetworkProp |
|---|
calculateGradients, finishTraining, fixFlatSpot, getError, getErrorFunction, getIteration, getLastGradient, getNetwork, getNumThreads, getTraining, iteration, 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 |
| Constructor Detail |
|---|
public TrainFlatNetworkBackPropagation(FlatNetwork network,
MLDataSet training,
double theLearningRate,
double theMomentum)
network - The network to train.training - The training data.theLearningRate - The learning rate.theMomentum - The momentum.| Method Detail |
|---|
public final double[] getLastDelta()
public final double getLearningRate()
public final double getMomentum()
public final void setLastDelta(double[] ds)
ds - The last delta.public final void setLearningRate(double rate)
rate - The learning rate.public final void setMomentum(double rate)
rate - The momentum.
public final double updateWeight(double[] gradients,
double[] lastGradient,
int index)
updateWeight in class TrainFlatNetworkPropgradients - The gradients.lastGradient - The last gradients.index - The index.
public void initOthers()
initOthers in class TrainFlatNetworkProp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||