Adding a snippet of verterbi decoder example code would be great in DMM


#1

The section of DMM is great!
https://pyro.ai/examples/dmm.html#

I think there may be much more people, not only me, would like to see how to use the model to infer the most likely latent state sequence that has the maximum likelihood by using the Viterbi decoder. In addition, the decoder is implemented in the Pyro style.

Many thanks,


#2

The infer_discrete documentation has an example of how to perform Viterbi decoding.