Inference in network
Inference in network
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?
Re: Inference in network
Hi Ralph,
It's kept after it's created and is reused for later inferences.
Best,
Martijn
It's kept after it's created and is reused for later inferences.
Best,
Martijn
-
- Site Admin
- Posts: 1422
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Inference in network
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.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?
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.