Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial State in Semisupervised HMM Example #106

Open
jhoupt opened this issue Jun 5, 2017 · 0 comments
Open

Initial State in Semisupervised HMM Example #106

jhoupt opened this issue Jun 5, 2017 · 0 comments

Comments

@jhoupt
Copy link

jhoupt commented Jun 5, 2017

In the generated quantities, the initial state likelihood is only set for the state with the highest index. I believe is this is a typo wherein a lower case k should have been used on the left side of line 51. Lines 50-51 in hmm-semisup.stan:
for (k in 1:K)
best_logp[1,K] <- log(phi[k,u[1]]);

The same typo appears in the manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant