|
STK++ 0.9.13
|
Implementation of the EMPredict algorithm. More...
#include <STK_MixtureAlgoPredict.h>

Public Member Functions | |
| EMPredict () | |
| default constructor | |
| EMPredict (EMPredict const &algo) | |
| Copy constructor. | |
| virtual | ~EMPredict () |
| destructor | |
| virtual EMPredict * | clone () const |
| clone pattern | |
| virtual bool | run () |
| run the algorithm on the model until the maximal number of iteration or the threshold is reached. | |
Public Member Functions inherited from STK::IMixtureAlgoPredict | |
| virtual | ~IMixtureAlgoPredict () |
| destructor | |
| int | nbIterBurn () const |
| int | setNbIterLong () const |
| int | epsilon () const |
| void | setModel (IMixtureComposer *p_model) |
| set model | |
| void | setNbIterBurn (int nbIterBurn) |
| set number of burning iterations | |
| void | setNbIterLong (int nbIterLong) |
| set number of long iterations | |
| void | setEpsilon (Real epsilon) |
| set tolerance value | |
Public Member Functions inherited from STK::IRunnerBase | |
| String const & | error () const |
| get the last error message. | |
Additional Inherited Members | |
Protected Member Functions inherited from STK::IMixtureAlgoPredict | |
| IMixtureAlgoPredict () | |
| default constructor | |
| IMixtureAlgoPredict (IMixtureAlgoPredict const &algo) | |
| Copy constructor. | |
| bool | predictBayesClassifier () |
| predict class labels when there is no missing values. | |
| bool | burnStep () |
| Perform burn step using SEM algorithm. | |
Protected Member Functions inherited from STK::IRunnerBase | |
| IRunnerBase () | |
| default constructor | |
| IRunnerBase (IRunnerBase const &runner) | |
| copy constructor | |
| virtual | ~IRunnerBase () |
| destructor | |
| virtual void | update () |
| update the runner. | |
Protected Attributes inherited from STK::IMixtureAlgoPredict | |
| IMixtureComposer * | p_model_ |
| pointer on the mixture model | |
| int | nbIterBurn_ |
| Number of burning iterations of the algorithm. | |
| int | nbIterLong_ |
| maximal number of iterations of the algorithm | |
| Real | epsilon_ |
| tolerance of the algorithm. | |
Protected Attributes inherited from STK::IRunnerBase | |
| String | msg_error_ |
| String with the last error message. | |
| bool | hasRun_ |
true if run has been used, false otherwise | |
Implementation of the EMPredict algorithm.
EMPredict algorithm start calling an initializationStep and then calls until convergence steps:
Definition at line 52 of file STK_MixtureAlgoPredict.h.
|
inline |
default constructor
Definition at line 56 of file STK_MixtureAlgoPredict.h.
Referenced by clone().
Copy constructor.
| algo | the algorithm to copy |
Definition at line 59 of file STK_MixtureAlgoPredict.h.
|
inlinevirtual |
|
virtual |
run the algorithm on the model until the maximal number of iteration or the threshold is reached.
true if no error occur, false otherwise. Implements STK::IRunnerBase.
Definition at line 44 of file STK_MixtureAlgoPredict.cpp.
References _T, STK::IMixtureAlgoPredict::burnStep(), STK::IMixtureStatModel::computeNbMissingValues(), STK::IMixtureAlgoPredict::epsilon_, STK::IRunnerBase::error(), STK::IMixtureComposer::eStep(), STK::Clust::exceptionToString(), STK::IMixtureComposer::finalizeStep(), STK::IMixtureStatModel::imputationStep(), STK::IMixtureComposer::initializeStep(), STK::IStatModelBase::lnLikelihood(), STK::IMixtureComposer::mapStep(), STK::IRunnerBase::msg_error_, STK::IMixtureAlgoPredict::nbIterBurn_, STK::IMixtureAlgoPredict::nbIterLong_, STK::IMixtureAlgoPredict::p_model_, STK::IMixtureAlgoPredict::predictBayesClassifier(), and stk_cout.