stephen-youn / pmtk3

Automatically exported from code.google.com/p/pmtk3
MIT License
0 stars 0 forks source link

dgmLogprobTest fails #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Edit dgmLogprobTest line 92 uncomment this line:

   %assert(approxeq(logZ7, logZ1, tol));

Then run dgmLogproTest.

What is the expected output? What do you see instead?

When trial=2, so all nodes are clamped, the logprob can be computed
by multiplying all the CPDs together, since the model is fully visible.
This should give the same result as the normalization constant for
inference. However, the assertion is violated.

Please use labels and text to provide additional information.

Bayes net probability of the evidence computation is failing.
Pretty fundamental... (seems to work if libdai on path - not sure
what the connection is, the libdai should not need to be called
if the model is fully visible)

Original issue reported on code.google.com by murphyk2 on 28 Feb 2011 at 7:55

GoogleCodeExporter commented 9 years ago
Moved to GitHub: https://github.com/probml/pmtk3/issues/18

Original comment by irosen on 4 Jan 2014 at 2:34