|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.training.BasicTraining
public abstract class BasicTraining
An abstract class that implements basic training for most training algorithms. Specifically training strategies can be added to enhance the training.
| Constructor Summary | |
|---|---|
BasicTraining()
|
|
| Method Summary | |
|---|---|
void |
addStrategy(Strategy strategy)
Training strategies can be added to improve the training results. |
void |
finishTraining()
Should be called after training has completed and the iteration method will not be called any further. |
double |
getError()
Get the current error percent from the training. |
java.util.List<Strategy> |
getStrategies()
|
NeuralDataSet |
getTraining()
|
void |
postIteration()
Call the strategies after an iteration. |
void |
preIteration()
Call the strategies before an iteration. |
void |
setError(double error)
|
void |
setTraining(NeuralDataSet training)
Set the training object that this strategy is working with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.encog.neural.networks.training.Train |
|---|
getNetwork, iteration |
| Constructor Detail |
|---|
public BasicTraining()
| Method Detail |
|---|
public void addStrategy(Strategy strategy)
addStrategy in interface Trainstrategy - The strategy to add.public void finishTraining()
finishTraining in interface Trainpublic double getError()
getError in interface Trainpublic java.util.List<Strategy> getStrategies()
getStrategies in interface Trainpublic NeuralDataSet getTraining()
getTraining in interface Trainpublic void postIteration()
public void preIteration()
public void setError(double error)
setError in interface Trainerror - Set the current error rate. This is usually used by training
strategies.public void setTraining(NeuralDataSet training)
training - The training object.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||