jmschrei / pomegranate

Fast, flexible and easy to use probabilistic modelling in Python.
http://pomegranate.readthedocs.org/en/latest/
MIT License
3.29k stars 590 forks source link

[Suggestion] Better description of how to implement HMM's #1084

Open kaare-mikkelsen opened 3 months ago

kaare-mikkelsen commented 3 months ago

Would it be possible to better explain how to implement HMM's using pomegranate? A common treatment of HMM's deals with transition probabilities and emission probability (see, e.g, Bishop: https://www.microsoft.com/en-us/research/uploads/prod/2006/01/Bishop-Pattern-Recognition-and-Machine-Learning-2006.pdf), not 'edges'. It's not readily apparent how to translate between the two pictures.

jmschrei commented 3 months ago

Howdy. When you have a dense transition matrix you can pass that in to edges. See the section "Dense and Sparse HMMs": https://github.com/jmschrei/pomegranate/blob/master/docs/tutorials/B_Model_Tutorial_4_Hidden_Markov_Models.ipynb

Is that not sufficient?