-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Issue/838 hmm #840
base: master
Are you sure you want to change the base?
Issue/838 hmm #840
Conversation
I took a look through this and while I'm in favor of minimal examples, this one's a bit too minimal. I would really like to see the model laid out in more detail than the conditional distributions. Here are some concrete suggestions:
array[3] simplex[3] gamma_arr;
matrix[3, 3] gamma;
for (n in 1:3) gamma[n] = gamma_arr[n];
for (n in 1:N) {
for (k in 1:3) {
log_omega[k, n] = normal_lpdf(y[n] | mu[k], sigma);
}
}
|
I'm rewriting the code to make the transition matrix less constrained (per comment 4) and I wanted to check: we don't have a stochastic matrix type, right? |
We have row and column but not double yet https://mc-stan.org/docs/reference-manual/types.html#stochastic-matrices |
Submission Checklist
<<{ since VERSION }>>
Summary
Addresses issue #838 and updates user-doc on HMMs.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Charles Margossian, Simons Foundation
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: