Propagate {BayesNetBP} | R Documentation |
Propagate the cluster tree
Description
This function propagates the discrete compartment of a ClusterTree
object.
Usage
Propagate(tree, targets = NA)
Arguments
tree |
an initialized |
targets |
the cluster involved in evidence propagation, usually set by default |
Details
The discrete compartment must be propagted to get the joint distributions
of discrete variables in each discrete clusters. A ClusterTree
object must be propagated
before absorbing evidence and making queries.
Value
a ClusterTree
object
References
Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks.
Journal of Machine Learning Research, 6(Sep), 1517-1550.
Lauritzen, S. L., & Spiegelhalter, D. J. (1988). Local computations with probabilities on
graphical structures and their application to expert systems. Journal of the Royal Statistical
Society. Series B (Methodological), 157-224.
Yu H, Moharil J, Blair RH (2020). BayesNetBP: An R Package for Probabilistic Reasoning in Bayesian
Networks. Journal of Statistical Software, 94(3), 1-31. <doi:10.18637/jss.v094.i03>.
Examples
data(liver)
tree.init <- Initializer(dag=liver$dag, data=liver$data,
node.class=liver$node.class,
propagate = FALSE)
tree.init@propagated
tree.init.p <- Propagate(tree.init)
tree.init.p@propagated