Learn R Programming

bnclassify (version 0.4.8)

max_weight_forest: Returns the undirected augmenting forest.

Description

Uses Kruskal's algorithm to find the augmenting forest that maximizes the sum of pairwise weights. When the weights are class-conditional mutual information this forest maximizes the likelihood of the tree-augmented naive Bayes network.

Usage

max_weight_forest(g)

Value

A graph. The maximum spanning forest.

Arguments

g

A graph. The undirected graph with pairwise weights.

Details

If g is not connected than this will return a forest; otherwise it is a tree.

References

Friedman N, Geiger D and Goldszmidt M (1997). Bayesian network classifiers. Machine Learning, 29, pp. 131--163.

Murphy KP (2012). Machine learning: a probabilistic perspective. The MIT Press. pp. 912-914.