Description Usage Arguments Value See Also Examples
Given a BN
object with a dag
, return a network
with its wpdag
set as the CPDAG computed starting from the dag
.
1 2 3 4 | wpdag.from.dag(x, layering = NULL, layer.struct = NULL)
## S4 method for signature 'BN'
wpdag.from.dag(x, layering = NULL, layer.struct = NULL)
|
x |
a |
layering |
vector containing the layers each node belongs to. |
layer.struct |
|
a BN
object with an initialized wpdag
.
1 2 3 4 5 | ## Not run:
net <- learn.network(dataset, layering=layering, layer.struct=layer.struct)
wp.net <- wpdag.from.dag(net, layering, layer.struct=layer.struct)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.