edit_dist_mb: A function to calculate the edit distance from the learned...

Description Usage Arguments

View source: R/edit_dist_mb.R

Description

This is a function to calculate the edit distance from the learned Markov blanket to the true Markov blanket. Edit distance is defined as the number of operations required to get from one to the other. If both true and learned are empty, the edit distance is 0; if only one of them is empty, the edit distance is the size of the other; if none of them is empty, the edit distance is the false positives plus the false negatives.

Usage

1
edit_dist_mb(mbTrue, mbLearned, vars, target)

Arguments

mbTrue

The true Markov blanket

mbLearned

The learned Markov blanket

vars

A vector of all variables.

target

The target node.


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.