solves the problem (and should be correct if I understand the library correctly). Then there is an error with the initial value when trying to sample from the model's posterior. This is due to S_t being initialized as an array of 0s and is solved by setting the test value of S_t as such in the model definition:
Poisson-zero Hidden Markov Model example does not run
Execute the notebook until cell 6 to notice the error. The following exception is raised:
Replacing the offending line with
solves the problem (and should be correct if I understand the library correctly). Then there is an error with the initial value when trying to sample from the model's posterior. This is due to
S_t
being initialized as an array of 0s and is solved by setting the test value ofS_t
as such in the model definition: