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


The section of DMM is great!

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,


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