Here is a quick example for graph coloring using BP:
2-color a cube
In [2]:
In [3]:
In [4]:
In [5]:
Out[5]:
In [7]:
Another cool example from Pearl's paper:
Burglar Alarm Example
What is the probability that there is a burglary given that Ali calls? 0.0162 (slide 10)
In [14]:
In [15]:
Out[15]:
What about if Veli also calls right after Ali hangs up? (0.29)
In [16]:
In [17]:
Out[17]:
No comments:
Post a Comment