STK++ 0.9.13
|
Interface base class for the learning algorithms. More...
#include <STK_IMixtureAlgoLearn.h>
Public Member Functions | |
virtual | ~IMixtureAlgoLearn () |
destructor | |
int | nbIterMax () const |
int | epsilon () const |
void | setModel (IMixtureLearner *p_model) |
set model | |
void | setNbIterMax (int nbIterMax) |
set maximal number of iterations | |
void | setEpsilon (Real epsilon) |
set tolerance value | |
![]() | |
String const & | error () const |
get the last error message. | |
virtual bool | run ()=0 |
run the computations. | |
Protected Member Functions | |
IMixtureAlgoLearn () | |
default constructor | |
IMixtureAlgoLearn (IMixtureAlgoLearn const &algo) | |
Copy constructor. | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
virtual void | update () |
update the runner. | |
Protected Attributes | |
IMixtureLearner * | p_model_ |
pointer on the mixture model | |
int | nbIterMax_ |
maximal number of iterations of the algorithm | |
Real | epsilon_ |
tolerance of the algorithm. | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
Interface base class for the learning algorithms.
All algorithms are runners applying on a model instance given by pointer and have to implement the run method.
Definition at line 51 of file STK_IMixtureAlgoLearn.h.
|
protected |
default constructor
Definition at line 45 of file STK_IMixtureAlgoLearn.cpp.
|
protected |
Copy constructor.
algo | the algorithm to copy |
Definition at line 48 of file STK_IMixtureAlgoLearn.cpp.
|
virtual |
|
inline |
Definition at line 68 of file STK_IMixtureAlgoLearn.h.
References epsilon_.
Referenced by setEpsilon().
|
inline |
Definition at line 66 of file STK_IMixtureAlgoLearn.h.
References nbIterMax_.
Referenced by setNbIterMax().
void STK::IMixtureAlgoLearn::setModel | ( | IMixtureLearner * | p_model | ) |
set model
Definition at line 58 of file STK_IMixtureAlgoLearn.cpp.
References p_model_.
Referenced by STK::LearnFacade::createImputeAlgo(), and STK::LearnFacade::createSimulAlgo().
set maximal number of iterations
Definition at line 74 of file STK_IMixtureAlgoLearn.h.
References nbIterMax(), and nbIterMax_.
|
protected |
tolerance of the algorithm.
Definition at line 84 of file STK_IMixtureAlgoLearn.h.
Referenced by epsilon(), STK::ImputeAlgo::run(), and setEpsilon().
|
protected |
maximal number of iterations of the algorithm
Definition at line 82 of file STK_IMixtureAlgoLearn.h.
Referenced by nbIterMax(), STK::ImputeAlgo::run(), STK::SimulAlgo::run(), and setNbIterMax().
|
protected |
pointer on the mixture model
Definition at line 80 of file STK_IMixtureAlgoLearn.h.
Referenced by STK::ImputeAlgo::run(), STK::SimulAlgo::run(), and setModel().