You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to webppl-dev
Hi all,
I've been trying to understand the "one more optimization" mentioned at http://dippl.org/chapters/04-factorseq.html as "(There is one more optimization for the HMM: We could achieve dynamic programming by inserting additional marginal operators at the boundary of hmmRecur and caching them.)".
I played around with wrapping the recursive call to hmmRecur inside Infer() and returning sample or sampleWithFactor() but none of it felt right and indeed the results were different (and incorrect assuming the original example is correct). Could anyone help clarify what is the right way to implement this optimization? Thanks in advance!