Inference in network

The engine.
Post Reply
ralph12
Posts: 1
Joined: Tue Nov 19, 2013 6:51 pm

Inference in network

Post by ralph12 »

The default Lauritzen algorithm for updating the Bayesian network transforms the Bayesian network into a junction tree. If i call UpdateBeliefs multiple times to update the same Bayesian network structure with the same relations . Does UpdateBeliefs generate the junction tree for the Bayesian network once and saves it or is it generated each time i call UpdateBeliefs?
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: Inference in network

Post by Martijn »

Hi Ralph,

It's kept after it's created and is reused for later inferences.

Best,

Martijn
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Inference in network

Post by shooltz[BayesFusion] »

ralph12 wrote: Does UpdateBeliefs generate the junction tree for the Bayesian network once and saves it or is it generated each time i call UpdateBeliefs?
Martijn's answer is incorrect. SMILE always re-creates the junction tree during the inference based on Lauritzen algorithm. When inference finishes the junction tree is discarded.

Additionally, note that a forest of junction trees is created (not just one tree), because SMILE preprocesses the network using relevance algorithm, which may yield more than one separate network fragment.
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: Inference in network

Post by Martijn »

Whoops, my bad.
Post Reply