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

numerical stability in sum-product BP #500

Open
dahtah opened this issue May 24, 2018 · 0 comments
Open

numerical stability in sum-product BP #500

dahtah opened this issue May 24, 2018 · 0 comments

Comments

@dahtah
Copy link

dahtah commented May 24, 2018

Hi all, there seems to be an issue with BP in graphs with large number of labels. I've modified doSumProdInference.cxx to define a Markov chain where both univariate and bivariate factors are constant, so that the model is just that each variable is drawn IID from the uniform distribution over the labels. Running BP on a model with three variables and not-too-many labels works fine. With around 350 labels BP fails and the marginals of the intermediate variables don't sum to 1 like they should.
Here's the code: https://pastebin.com/DJdqKgvy

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