pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.68k stars 2.01k forks source link

forward-backward algorithm - gibbs sampler and hidden markov chains #1558

Closed jimenofonseca closed 7 years ago

jimenofonseca commented 7 years ago

Hello pymc3 devs!

I was wondering if there are some intentions to implement some samplers for hidden-markov chains. I am working on calibration of dynamic simulation models using bayesian inference. I am somehow missing how do the current samplers of PYMC3 tackle the temporal interdependency of dynamic models (which could be found widely in economic, medical and even energy forecasting problems). I saw some implementations in Matlab of fast-forward algorithms and gibbs samplers which might help : https://projecteuclid.org/download/pdf_1/euclid.ba/1340370283. The Matlab code is included at the end of the article.

twiecki commented 7 years ago

There is an implicit focus on continuous models in PyMC3. We sometimes hear requests for HMMs but so far no one has worked on that. It's not clear that it should be a focus either given that there are multiple HMM packages for Python that seem quite flexible. Have you tried any of those?

jimenofonseca commented 7 years ago

I have seen some similar to hmmlearn, but most lack either documentation or up to date algorithms. It would be great to use some of the functionality of pymc3 with hmm one day.

On 28 Nov 2016, at 19:39, Thomas Wiecki notifications@github.com<mailto:notifications@github.com> wrote:

There is an implicit focus on continuous models in PyMC3. We sometimes hear requests for HMMs but so far no one has worked on that. It's not clear that it should be a focus either given that there are multiple HMM packages for Python that seem quite flexible. Have you tried any of those?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/pymc-devs/pymc3/issues/1558#issuecomment-263250060, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIjrguYOLxwD78ONQF9h-7yV0euQBMfIks5rCr17gaJpZM4K9nz7.

twiecki commented 7 years ago

I'm closing this as we're not actively pursuing it, if someone wants to do a PR we'll definitely consider it.