You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I sample from the posterior without defining any step method (Metropolis sampler is automatically assigned to the DiscreteMarkovChain random variables and NUTS is assigned to the rest) the results converge. The code and some of the results are represented below.
Code:
with model:
posterior_trace = pm.sample(
return_inferencedata=True,
chains=2,
progressbar=True
)
Results:
However, when I define the sampling steps for the hidden states Z_t to be performed using the FFBSStep, my samples do not converge. You can find the code and some of the results below.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I am trying to estimate the parameters of a Hidden Markov Model (HMM) with gaussian emissions. For that, I am using the model below.
When I sample from the posterior without defining any step method (Metropolis sampler is automatically assigned to the
DiscreteMarkovChain
random variables and NUTS is assigned to the rest) the results converge. The code and some of the results are represented below.However, when I define the sampling steps for the hidden states
Z_t
to be performed using theFFBSStep
, my samples do not converge. You can find the code and some of the results below.Why does this happen? Am I doing someting wrong?
Beta Was this translation helpful? Give feedback.
All reactions