|
STK++ 0.9.13
|
Interface base class for predicting algorithms. More...
#include <STK_IMixtureAlgoPredict.h>

Public Member Functions | |
| 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. | |
| virtual bool | run ()=0 |
| run the computations. | |
Protected Member Functions | |
| 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 | |
| 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 | |
Interface base class for predicting algorithms.
Predicting algorithms are decomposed in two stages :
All algorithms are runners applying on a IMixtureComposer model instance given by pointer and have to implement the run method.
Definition at line 57 of file STK_IMixtureAlgoPredict.h.
|
protected |
default constructor
Definition at line 42 of file STK_IMixtureAlgoPredict.cpp.
|
protected |
Copy constructor.
| algo | the algorithm to copy |
Definition at line 48 of file STK_IMixtureAlgoPredict.cpp.
|
virtual |
|
protected |
Perform burn step using SEM algorithm.
true if no error occur, false otherwise Definition at line 101 of file STK_IMixtureAlgoPredict.cpp.
References _T, STK::IRunnerBase::error(), STK::IMixtureComposer::eStep(), STK::Clust::exceptionToString(), STK::IMixtureComposer::initializeStep(), STK::IRunnerBase::msg_error_, nbIterLong_, p_model_, STK::IMixtureStatModel::samplingStep(), STK::IMixtureStatModel::setParametersStep(), STK::IMixtureComposer::sStep(), stk_cout, and STK::IMixtureStatModel::storeIntermediateResults().
Referenced by STK::EMPredict::run(), and STK::SemiSEMPredict::run().
|
inline |
Definition at line 76 of file STK_IMixtureAlgoPredict.h.
References epsilon_.
Referenced by setEpsilon().
|
inline |
Definition at line 72 of file STK_IMixtureAlgoPredict.h.
References nbIterBurn_.
Referenced by setNbIterBurn().
|
protected |
predict class labels when there is no missing values.
In this case, there is no algorithm to do. Just call:
true if no error occur, false otherwise Definition at line 66 of file STK_IMixtureAlgoPredict.cpp.
References _T, STK::IRunnerBase::error(), STK::IMixtureComposer::eStep(), STK::Clust::exceptionToString(), STK::IMixtureComposer::finalizeStep(), STK::IMixtureComposer::initializeStep(), STK::IMixtureComposer::mapStep(), STK::IRunnerBase::msg_error_, p_model_, and stk_cout.
Referenced by STK::EMPredict::run(), and STK::SemiSEMPredict::run().
| void STK::IMixtureAlgoPredict::setModel | ( | IMixtureComposer * | p_model | ) |
set model
Definition at line 59 of file STK_IMixtureAlgoPredict.cpp.
References p_model_.
set number of burning iterations
Definition at line 82 of file STK_IMixtureAlgoPredict.h.
References nbIterBurn(), and nbIterBurn_.
|
inline |
Definition at line 74 of file STK_IMixtureAlgoPredict.h.
References nbIterLong_.
set number of long iterations
Definition at line 84 of file STK_IMixtureAlgoPredict.h.
References nbIterLong_.
|
protected |
tolerance of the algorithm.
Definition at line 96 of file STK_IMixtureAlgoPredict.h.
Referenced by epsilon(), STK::EMPredict::run(), and setEpsilon().
|
protected |
Number of burning iterations of the algorithm.
Definition at line 92 of file STK_IMixtureAlgoPredict.h.
Referenced by nbIterBurn(), STK::EMPredict::run(), STK::SemiSEMPredict::run(), and setNbIterBurn().
|
protected |
maximal number of iterations of the algorithm
Definition at line 94 of file STK_IMixtureAlgoPredict.h.
Referenced by burnStep(), STK::EMPredict::run(), STK::SemiSEMPredict::run(), setNbIterLong(), and setNbIterLong().
|
protected |
pointer on the mixture model
Definition at line 90 of file STK_IMixtureAlgoPredict.h.
Referenced by burnStep(), predictBayesClassifier(), STK::EMPredict::run(), STK::SemiSEMPredict::run(), and setModel().