This function converts an adjacency matrix to a dag in the bnlearn format. The resulting dag could be undirected if the learned adjancency matrix is bi-directed.
1 | matrix2dag(mtx)
|
mtx |
Adjacency matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.