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

simplify M step for Bernoulli HMM #75

Closed
murphyk opened this issue Jul 12, 2022 · 5 comments
Closed

simplify M step for Bernoulli HMM #75

murphyk opened this issue Jul 12, 2022 · 5 comments
Assignees

Comments

@murphyk
Copy link
Member

murphyk commented Jul 12, 2022

Replace beta.mode in https://github.com/probml/ssm-jax/blob/main/ssm_jax/hmm/models/bernoulli_hmm.py#L99
with pseudo counts

@murphyk
Copy link
Member Author

murphyk commented Jul 12, 2022

@murphyk
Copy link
Member Author

murphyk commented Jul 12, 2022

Here are the details from my book 1. Note that the add one smoothng prior corresponds to Beta(2,2) which is much stronger than your current Beta(1.1, 1.1). This might explain your numerical problems.

Screen Shot 2022-07-12 at 11 03 08 AM

@slinderman
Copy link
Collaborator

Replace beta.mode in https://github.com/probml/ssm-jax/blob/main/ssm_jax/hmm/models/bernoulli_hmm.py#L99 with pseudo counts

I actually like the Beta(count1, count0).mode() formulation! I think it shows off the general form of the M-steps.

@karalleyna
Copy link
Collaborator

I think we've all settled on using the Beta(count1, count0).mode(). Could I close this issue?

@slinderman
Copy link
Collaborator

Yup!

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

3 participants