This is a function to calculate the classification accuracy of a Markov blanket learner. In details, the function calculates TP, TN, FP, FN, and returns precision and recall as outputs. If true mb is empty but learned mb is not, then both precision and recall are 0; if learned mb is empty but true mb is not, then both precision and recall are 0; if both true and learned mbs are empty, then both precision and recall are 1.
1 | mb_retrieval(mbt, mbl, nvars)
|
mbt |
The true Markov blanket |
mbl |
The learned Markov blanket |
nvars |
The number of variables. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.