|
||||||||||
| 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
public abstract class Propagation
Implements basic functionality that is needed by each of the propagation methods. The specifics of each of the propagation methods is implemented inside of the PropagationMethod interface implementors.
| Constructor Summary | |
|---|---|
Propagation(ContainsFlat network,
MLDataSet training)
Construct a propagation object. |
|
| Method Summary | |
|---|---|
void |
finishTraining()
Should be called after training has completed and the iteration method will not be called any further. |
void |
fixFlatSpot(boolean b)
Default is true. |
FlatNetwork |
getCurrentFlatNetwork()
|
TrainFlatNetwork |
getFlatTraining()
|
MLMethod |
getMethod()
Get the current best machine learning method from the training. |
int |
getThreadCount()
|
void |
iteration()
Perform one training iteration. |
void |
iteration(int count)
Perform the specified number of training iterations. |
void |
setErrorFunction(ErrorFunction ef)
|
void |
setFlatTraining(TrainFlatNetwork flatTraining)
|
void |
setThreadCount(int numThreads)
Set the number of threads. |
| 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, canContinue, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, pause, resume, setError, setIteration |
| Constructor Detail |
|---|
public Propagation(ContainsFlat network,
MLDataSet training)
network - The network.training - The training set.| Method Detail |
|---|
public final void finishTraining()
finishTraining in interface MLTrainfinishTraining in class BasicTrainingpublic final FlatNetwork getCurrentFlatNetwork()
public final TrainFlatNetwork getFlatTraining()
public final MLMethod getMethod()
getMethod in interface MLTrainpublic final int getThreadCount()
getThreadCount in interface MultiThreadablepublic final void iteration()
iteration in interface MLTrainpublic final void iteration(int count)
iteration in interface MLTrainiteration in class BasicTrainingcount - The number of training iterations.public final void setFlatTraining(TrainFlatNetwork flatTraining)
flatTraining - the flatTraining to setpublic final void setThreadCount(int numThreads)
setThreadCount in interface MultiThreadablenumThreads - The number of threads.public void fixFlatSpot(boolean b)
b - True to fix flat spots, false otherwise.public void setErrorFunction(ErrorFunction ef)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||