-
Notifications
You must be signed in to change notification settings - Fork 18
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
Inference Does Not Work for Non-Tree Factor Graphs #8
Comments
In the docstring for inference.sum_product it says that the algorithm only works for tree graphs. The algorithm for non-trees is different - try |
Thanks for the response. # Perform loopy-belief propagation on factor graph
# and request belief of variable node x3
belief = inference.loopy_belief_propagation(fg, 10, (x3,)) The terminal output is shown below.
|
@studentbrad did you ever resolve this? I have the same issue for loopy graph when trying to compute marginals |
@goodyguts, for my loopy graph I tried:
and runs without error, but no marginals. Can you comment please thx! |
@mercicle, I wasn't able to get this implementation of loopy belief propagation working. |
Could you please let us know what tool you finally used for the loopy BP? Thanks! |
It looks like inference is not working for non-tree structures.
For example consider the following simple factor graph with nodes x1, x2, x3 and factors fa, fb, fc.
The terminal output is shown below.
The text was updated successfully, but these errors were encountered: