junction-tree
junction-tree copied to clipboard
The junction tree algorithm for (discrete) factor graphs
Fixed index mismatches causing #13 results and non-reproducibility. Removed `remove_messages` function so that excluded message is not included in the product of messages calculation rather than trying to remove it...
I feel like there is a problem with indices somewhere. When running the code below where the pairwise potentials are non-informative, the marginals are wrong for a few nodes only...
Hello, Taking as an example the Bayesian Network of {cloudy, sprinkler, rain, wetGrass}, Is there any way to provide evidence in the form "Now, I know that the probability of...