View source: R/edit_dist_dag.R
The true and learned DAGs must be stored as adjacent matrix. The output is a list consists of false positive, false negative, precision, recall and edit distance. Edit distance between two DAGs is defined as the minimum number of arc deletion and addition to turn dagL to dagT.
1 | edit_dist_dag(dagL, dagT)
|
dagL |
The learned DAG. |
dagT |
The true DAG. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.