max_weight_forest: Returns the undirected augmenting forest.

View source: R/frontend-anb.r

max_weight_forestR Documentation

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)

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.

Value

A graph. The maximum spanning forest.

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.


bnclassify documentation built on Nov. 16, 2022, 5:08 p.m.