STK++ 0.9.13
|
Implementation of the ImputeAlgo learning algorithm. More...
#include <STK_MixtureAlgoLearn.h>
Public Member Functions | |
ImputeAlgo () | |
default constructor | |
ImputeAlgo (ImputeAlgo const &algo) | |
Copy constructor. | |
virtual | ~ImputeAlgo () |
destructor | |
virtual ImputeAlgo * | clone () const |
clone pattern | |
virtual bool | run () |
run the algorithm on the model calling the eStep and mStep of the model until the maximal number of iteration is reached or the variation of the lnLikelihood is less than epsilon. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
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 | |
Implementation of the ImputeAlgo learning algorithm.
The Impute algorithm call alternatively the steps:
Definition at line 51 of file STK_MixtureAlgoLearn.h.
|
inline |
default constructor
Definition at line 55 of file STK_MixtureAlgoLearn.h.
Referenced by clone().
|
inline |
Copy constructor.
algo | the algorithm to copy |
Definition at line 58 of file STK_MixtureAlgoLearn.h.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
run the algorithm on the model calling the eStep and mStep of the model until the maximal number of iteration is reached or the variation of the lnLikelihood is less than epsilon.
true
if no error occur, false
otherwise Implements STK::IRunnerBase.
Definition at line 44 of file STK_MixtureAlgoLearn.cpp.
References _T, STK::IMixtureAlgoLearn::epsilon_, STK::IRunnerBase::error(), STK::Clust::exceptionToString(), STK::IMixtureStatModel::finalizeStep(), STK::IMixtureStatModel::imputationStep(), STK::IStatModelBase::lnLikelihood(), STK::IMixtureLearner::mapStep(), STK::IRunnerBase::msg_error_, STK::IMixtureAlgoLearn::nbIterMax_, STK::IMixtureAlgoLearn::p_model_, STK::IMixtureLearner::paramUpdateStep(), and stk_cout.