Initializer: Initialize a ClusterTree object

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/C2_Initializer.R

Description

Initialize a ClusterTree object

Usage

1
Initializer(dag, data, node.class, propagate = TRUE)

Arguments

dag

a graphNEL object of the Bayesian network

data

a data.frame object

node.class

a named vector of logical values, TRUE if node is discrete, FASLE if otherwise

propagate

logical TRUE if the discrete part of the ClusterTree to be propagated

Details

A wrapper function to initialize a ClusterTree object. It combines the functions of ClusterTreeCompile, LocalModelCompile, ElimTreeInitialize and Propagate, thus initialize the ClusterTree object in a single step.

Value

ClusterTree object

Author(s)

Han Yu

References

Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks. Journal of Machine Learning Research, 6(Sep), 1517-1550.

See Also

ClusterTreeCompile, LocalModelCompile, ElimTreeInitialize, Propagate

Examples

1
2
3
4
data(liver)
tree.init.p <- Initializer(dag=liver$dag, data=liver$data,
                           node.class=liver$node.class,
                           propagate = TRUE)

Yam76/BayesNetBP documentation built on Aug. 23, 2019, 1:23 a.m.