This class is used to train any distribution using the EM algorithm.
Inheritance:
Public Fields
-
Distribution* distribution
- the distribution to train
-
SeqDataSet* sdata
- the training set is a SeqDataSet, since we are working with distributions
-
real end_accuracy
- the stopping criterion regarding the accuracy for EM
-
int max_iter
- the stopping criterion regarding the number of iterations for EM
Public Methods
-
EMTrainer(Distribution* distribution_, SeqDataSet* data_)
-
virtual void decode(List* measurers)
- this method computes the most likely path into the distribution.
Inherited from Trainer:
Public Methods
-
virtual void train(List* measurers)
-
virtual void test(List* measurers)
-
virtual void testExample(List* measurers, int t)
-
virtual void crossValidate(int k_fold, List* train_measurers, List* test_measurers, List* cross_valid_measurers=NULL)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
Inherited from Object:
Public Methods
-
virtual void init()
-
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
-
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
This class is used to train any distribution using the EM algorithm.
Distribution* distribution
- the distribution to train
SeqDataSet* sdata
- the training set is a SeqDataSet, since we are working with distributions
real end_accuracy
- the stopping criterion regarding the accuracy for EM
int max_iter
- the stopping criterion regarding the number of iterations for EM
EMTrainer(Distribution* distribution_, SeqDataSet* data_)
virtual void decode(List* measurers)
- this method computes the most likely path into the distribution.
mainly used for sequential distribution such as HMMs.
- Direct child classes:
- ViterbiTrainer
- Author:
- Samy Bengio (bengio@idiap.ch)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.