47 MLfunc() :m_pModel(NULL), m_pCorpusTrain(NULL), m_pCorpusValid(NULL), m_pCorpusTest(NULL) {
48 m_pathOutputModel = NULL;
52 virtual void SetParam(
double *pdParams);
53 void GetParam(
double *pdParams);
62 virtual double GetValue();
63 virtual void GetGradient(
double *pdGradient);
64 virtual int GetExtraValues(
int t,
double *pdValues);
CorpusBase * m_pCorpusValid
valid corpus
const char * m_pathOutputModel
Write to model during iteration.
Vec< PValue > m_value
save the temp value of type PValue.
CorpusBase * m_pCorpusTrain
training corpus
Vec< Prob > m_trainPi
the length distribution in training corpus
Vec< double > m_vEmpiricalExp
the empirical expectation
define the framework of iterative algorithms, such as gradient descent or LBFGS.
CorpusBase * m_pCorpusTest
test corpus
the objective function, used to derive
Model * m_pModel
HRF model.
define all the code written by Bin Wang.