This class is a special case of a HMM that implements the MAP algorithm for HMM transitions probabilities.
Inheritance:
Public Fields
-
HMM* prior_distribution
- The prior distribution used in MAP
-
real weight_on_prior
- The weight to give to the prior parameters during update
-
real log_weight_on_prior
- log(weight_on_prior)
-
real log_1_weight_on_prior
- log(1-weight_on_prior_
Public Methods
-
MAPHMM(int n_states_, Distribution** states_, real** transitions_, HMM* prior_distribution_)
-
virtual void eMUpdate()
- map adaptation method for transitions probabilities
Inherited from HMM:
Public Fields
-
int n_states
-
real prior_transitions
-
Distribution** states
-
Distribution** shared_states
-
real** transitions
-
real** log_transitions
-
real** dlog_transitions
-
real** transitions_acc
-
Sequence* log_alpha
-
Sequence* log_beta
-
Sequence* arg_viterbi
-
int last_arg_viterbi
-
Sequence* viterbi_sequence
-
Sequence* log_probabilities_s
-
bool initialize
Public Methods
-
virtual void printTransitions(bool real_values=false, bool transitions_only=false)
-
virtual void logAlpha(Sequence* inputs)
-
virtual void logBeta(Sequence* inputs)
-
virtual void logViterbi(Sequence* inputs)
-
virtual void decode(Sequence* input)
-
virtual void logProbabilities(Sequence* inputs)
Public Fields
-
real log_probability
-
Sequence* log_probabilities
Public Methods
-
virtual real logProbability(Sequence* inputs)
-
virtual real viterbiLogProbability(Sequence* inputs)
-
virtual real frameLogProbability(int t, real* f_inputs)
-
virtual real viterbiFrameLogProbability(int t, real* f_inputs)
-
virtual void eMIterInitialize()
-
virtual void iterInitialize()
-
virtual void eMSequenceInitialize(Sequence* inputs)
-
virtual void sequenceInitialize(Sequence* inputs)
-
virtual void eMAccPosteriors(Sequence* inputs, real log_posterior)
-
virtual void frameEMAccPosteriors(int t, real* f_inputs, real log_posterior)
-
virtual void viterbiAccPosteriors(Sequence* inputs, real log_posterior)
-
virtual void frameViterbiAccPosteriors(int t, real* f_inputs, real log_posterior)
-
virtual void update()
-
virtual void eMForward(Sequence* inputs)
-
virtual void viterbiForward(Sequence* inputs)
-
virtual void frameBackward(int t, real* f_inputs, real* beta_, real* f_outputs, real* alpha_)
-
virtual void viterbiBackward(Sequence* inputs, Sequence* alpha)
-
virtual void frameDecision(int t, real* decision)
Public Members
-
Returns the decision of the distribution
Public Fields
-
int n_inputs
-
int n_outputs
-
Parameters* params
-
Parameters* der_params
-
Sequence* beta
Public Methods
-
virtual void forward(Sequence* inputs)
-
virtual void backward(Sequence* inputs, Sequence* alpha)
-
virtual void setPartialBackprop(bool flag=true)
-
virtual void frameForward(int t, real* f_inputs, real* f_outputs)
-
virtual void loadXFile(XFile* file)
-
virtual void saveXFile(XFile* file)
Inherited from Machine:
Public Fields
-
Sequence* outputs
Public Methods
-
virtual void reset()
-
virtual void setDataSet(DataSet* dataset_)
Inherited from Object:
Public Fields
-
Allocator* allocator
Public Methods
-
void addOption(const char* name, int size, void* ptr, const char* help="")
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="")
-
void addROption(const char* name, real* ptr, real init_value, const char* help="")
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
-
void addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
-
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 setOOption(const char* name, Object* option)
-
void load(const char* filename)
-
void save(const char* filename)
-
void* operator new(size_t size, Allocator* allocator_=NULL)
-
void* operator new(size_t size, Allocator* allocator_, void* ptr_)
-
void operator delete(void* ptr)
Documentation
This class is a special case of a HMM that implements the
MAP algorithm for HMM transitions probabilities.
- HMM* prior_distribution
- The prior distribution used in MAP
- real weight_on_prior
- The weight to give to the prior parameters during update
- real log_weight_on_prior
- log(weight_on_prior)
- real log_1_weight_on_prior
- log(1-weight_on_prior_
- MAPHMM(int n_states_, Distribution** states_, real** transitions_, HMM* prior_distribution_)
- virtual void eMUpdate()
- map adaptation method for transitions probabilities
- This class has no child classes.
- Author:
- Samy Bengio (bengio@idiap.ch)
Johnny Mariethoz (marietho@idiap.ch)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.