Description Usage Arguments Value Examples
Add a directed edge between two vertices and check for acycliclity.
1 | make.proposals(nw, blacklist = NULL, whitelist = NULL)
|
nw |
A |
blacklist |
2-column matrix or data.frame with forbidden edges (vertices as numbers) |
whitelist |
2-column matrix or data.frame with compulsory edges (vertices as numbers) |
Three column matrix. First column code for a type of modification
(1
is removal, 2
is addition, 3
is reversal).
Second and Third columns define edges to be modified.
1 2 3 4 | rg <- bnlearn::tabu(learning.test)
nw <- import.bnlearn(rg)
make.proposals(nw)
make.proposals(nw, blacklist=data.frame(a=1:5,b=6), whitelist=data.frame(a=1,b=c(2,4)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.