|
||||||||||
| 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. |
EncogCloud |
getCloud()
|
double |
getError()
Get the current error percent from the training. |
int |
getIteration()
|
List<Strategy> |
getStrategies()
|
NeuralDataSet |
getTraining()
|
boolean |
isTrainingDone()
|
void |
iteration(int count)
Perform the specified number of training iterations. |
void |
postIteration()
Call the strategies after an iteration. |
void |
preIteration()
Call the strategies before an iteration. |
void |
setCloud(EncogCloud cloud)
Set the cloud use to track this training. |
void |
setError(double error)
|
void |
setIteration(int iteration)
Set the current training iteration. |
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 EncogCloud getCloud()
getCloud in interface Trainpublic double getError()
getError in interface Trainpublic int getIteration()
getIteration in interface Trainpublic List<Strategy> getStrategies()
getStrategies in interface Trainpublic NeuralDataSet getTraining()
getTraining in interface Trainpublic boolean isTrainingDone()
isTrainingDone in interface Trainpublic void iteration(int count)
iteration in interface Traincount - The number of training iterations.public void postIteration()
public void preIteration()
public void setCloud(EncogCloud cloud)
setCloud in interface Traincloud - The cloud.public void setError(double error)
setError in interface Trainerror - Set the current error rate. This is usually used by training
strategies.public void setIteration(int iteration)
Train
setIteration in interface Trainiteration - the iteration to setpublic void setTraining(NeuralDataSet training)
training - The training object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||