how to use sumproductlab for belief propagation algorithm on a factor graph?
6 views (last 30 days)
Show older comments
Did anybody used sumproductlab(<http://www.mathworks.com/matlabcentral/fileexchange/26607-sumproductlab-for-factor-graphs>) for belief propagation algorithm ? I'm trying to implement a factor graph like this : factor graph that I want to implement

Where value of some of the x nodes are unknown and some of them are known. I want to find the values of unknown ones using belief propagation. So I created custom factor nodes for f and g but I don't know which kind of node should I use for x nodes. I tried to use evident nodes but they only have one connection. Thank you very much for any help.
0 Comments
Answers (3)
keyong hu
on 5 Jan 2020
Hi, have you solved the problem? I encounter similar problems.
2 Comments
keyong hu
on 10 Jan 2020
Hi, thank you for your response. I have another question:
Assume two nodes, m(evident node) and n(cp2_node), and the transition probability from m to n is the matrix A, in the opposite direction, i.e., from n to m, the transition probability is A'. That is the approach in the toolbox. If variables are continuous, their messages is represented by means and variance. In the example of Kalman filter, xout = A*xin, means the transition probability is A from xin to xout. From xout to xin, the probabilty is A' or the inverse of A?
Could you please share the code for belief propagation algorithm? My email is hukeyongouc@163.com,Thank you!
keyong hu
on 6 Jan 2020
Hi, thank you for your response. I have another question:
Assume two nodes, m(evident node) and n(cp2_node), and the transition probability from m to n is the matrix A, in the opposite direction, i.e., from n to m, the transition probability is A'. That is the approach in the toolbox. If variables are continuous, their messages is represented by means and variance. In the example of Kalman filter, xout = A*xin, means the transition probability is A from xin to xout. From xout to xin, the probabilty is A' or the inverse of A? Thank you!
0 Comments
keyong hu
on 6 Jan 2020
Could you please share the code for belief propagation algorithm? My email is hukeyongouc@163.com, thank you!
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!