72#ifdef STK_MIXTURE_VERBOSE
73 stk_cout <<
_T(
"------------------------------\n")
74 <<
_T(
"Entering StrategyFacade::run()\n");
84#ifdef STK_MIXTURE_VERBOSE
85 stk_cout <<
_T(
"StrategyFacade:run() terminated without success.\n")
87 <<
_T(
"------------------------------------------------\n");
95#ifdef STK_MIXTURE_VERBOSE
96 stk_cout <<
_T(
"StrategyFacade:run() terminated.\np_model->lnLikelihood() =")
98 <<
_T(
"--------------------------------\n");
120#ifdef STK_MIXTURE_VERBOSE
121 stk_cout <<
_T(
"------------------------------\n")
122 <<
_T(
"Entering LearnFacade::run() \n");
135#ifdef STK_MIXTURE_VERBOSE
136 stk_cout <<
_T(
"LearnFacade:run() terminated without success. \n")
138 <<
_T(
"------------------------------------------------\n");
148#ifdef STK_MIXTURE_VERBOSE
149 stk_cout <<
_T(
"StrategyFacade:run() terminated.\n")
151 <<
_T(
"--------------------------------\n");
In this file we define the abstract base class for mixture models.
In this file we define the interface base class for learners.
#define STKERROR_NO_ARG(Where, Error)
In this file we define learning mixture algorithms.
In this file we define mixture algorithms.
In this file we define the StrategyFacade and LearnFacade which construct properly a way to estimate/...
In this file we define the interface base class for initialization methods.
In this file we define the strategies to use in order to estimate a mixture model.
#define stk_cout
Standard stk output stream.
#define _T(x)
Let x unmodified.
void setModel(IMixtureLearner *p_model)
set model
Interface base class for the algorithms.
virtual void finalizeStep()
Finalize the estimation of the model.
Interface base class for the initializations.
virtual void initializeStep()
Initialize the model before at its first use.
virtual void finalizeStep()
Finalize the estimation of the model.
String msg_error_
String with the last error message.
virtual bool run()=0
run the computations.
String const & error() const
get the last error message.
Real lnLikelihood() const
virtual bool run()
run algorithm
void createImputeAlgo(Clust::algoLearnType algo, int nbIter, Real epsilon)
create an imputation algorithm
IMixtureLearner * p_model_
the mixture model to learn
void createSimulAlgo(Clust::algoLearnType algo, int nblongIter)
create a simulation algorithm
IMixtureAlgoLearn * p_algo_
the algorithm to use for learning
virtual ~LearnFacade()
destructor.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
IMixtureComposer *& p_model_
the mixture model to estimate
IMixtureStrategy * p_strategy_
the strategy to use in order to estimate the mixture model
void createSimpleStrategy(Clust::initType init, int nbTrialInInit, Clust::algoType initAlgo, int nbInitIter, Real initEpsilon, int nbTry, Clust::algoType algo, int nbIter, Real epsilon)
create a SimpleStrategy
virtual bool run()
run the strategy
void createFullStrategy(Clust::initType init, int nbTryInInit, Clust::algoType initAlgo, int nbInitIter, Real initEpsilon, int nbTry, int nbInitRun, int nbShortRun, Clust::algoType shortAlgo, int nbShortIter, Real shortEpsilon, Clust::algoType longAlgo, int nblongIter, Real longEpsilon)
create a FullStrategy
virtual ~StrategyFacade()
destructor.
initType
initialization type.
algoType
Estimation algorithms.
algoLearnType
Learning estimation algorithms.
IMixtureInit * createInit(Clust::initType init=defaultInitType, int nbInits=defaultNbInit, Clust::algoType algo=defaultAlgoInInit, int nbIterMax=defaultNbIterMaxInInit, Real epsilon=defaultEpsilonInInit)
Utility function for creating a model initializer.
IMixtureAlgo * createAlgo(Clust::algoType algo, int nbIterMax, Real epsilon)
utility function for creating an estimation algorithm.
IMixtureStrategy * createSimpleStrategy(IMixtureComposer *&p_composer, int nbTry, IMixtureInit *const &p_init, IMixtureAlgo *const &algo)
Utility function for creating a SimpleStrategy.
IMixtureAlgoLearn * createLearnAlgo(Clust::algoLearnType algo, int nbIterMax, Real epsilon)
utility function for creating a learning algorithm.
IMixtureStrategy * createFullStrategy(IMixtureComposer *&p_composer, int nbTry, int nbInitRun, IMixtureInit *const &p_init, int nbShortRun, IMixtureAlgo *const &shortRunAlgo, IMixtureAlgo *const &longRunAlgo)
Utility function for creating a FullStrategy.
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.