#include <trainer.h>
| Public Methods | |
| void | initTraining () | 
| bool | wantsToStop () const | 
| virtual void | cycleTrained (const Trainer &trainer, int totalCycles)=0 | 
| Protected Methods | |
| void | stopTraining () | 
Patterns: Observer.
Definition at line 196 of file trainer.h.
| 
 | ||||||||||||
| Callback method for informing the observer that one cycle has been trained. The Trainer::trainOnce() calls this method, after finishing with a training cycle. 
 Referenced by Trainer::train(). | 
| 
 | 
| Initializes the observer for a training. 
 | 
| 
 | 
| The observer should call this method from the cycleTrained() method when it wants to stop training. The training is stopped after the observer returns from the cycleTrained() method. | 
| 
 | 
| Returns true of the observer wants to stop learning. For observer implementors: to inform the Trainer that the observer wants to stop learning, call the method stopTraining(). Definition at line 209 of file trainer.h. Referenced by Trainer::train(). | 
 1.2.18
1.2.18