TheFGX / Hierarchical-Hidden-Markov-Model

Matlab Implementation of "The Hierarchical Hidden Markov Model: Analysis and Applications"
22 stars 22 forks source link

Draw HHMM method #1

Open CRF-HMM opened 12 years ago

CRF-HMM commented 12 years ago

I try to run the HHMM test code but it gives the following error: ??? Undefined function or method 'drawHHMM' for input arguments of type 'double'.

Is it possible for the owner to publish drawHHMM code as well?

Thanks

TheFGX commented 12 years ago

Hi, Sorry for the late answer! I published the DrawHHMM code, but it was only used for debugging issues and not for illustration how the HHMM works. Hope it helps :)

CRF-HMM commented 12 years ago

Thanks! I'll use it.

Another point is that, I looked at it and couldn't find but I think it is still beneficial to ask. Is calculating likelihood of the model implemented in your code? I need to evaluate how well a specific HHMM fits the data. If likelihood of an observation sequence is present, that will work too.

TheFGX commented 12 years ago

The liklihood for passing the states of the HHMM (the generalized Viterbi) is not implemented. The computaion of the Liklihood of an input sequence equivalent to the forward-algorithm is possible by calculating the alpha value with expectationAlphaBetaLog.m. In the same way the beta value is connected to the backward-algorithm. I hope this helps as well :)

speters1030 commented 10 years ago

Can you tell me what the q,seq,A,PI, B, alph, and Palt variables represent in your HHMM_EM code?