pydai Python wrappers for libdai In [1]: from pydai import sprinkler In [2]: sprinkler.test() 4 variables, 4 factors P(W=1) = 0.6471 P(S=1 | W=1) = 0.429763560501 P(R=1 | W=1) = 0.70792767733