togRain | R Documentation |
Convert to a gRain object.
togRain(x, ...)
x |
An adjacency matrix or igraph object. |
... |
extra parameters to gRain compile. |
A gRain object.
dag <- bnlearn::model2network("[A][C][F][B|A][D|A:C][E|B:F]")
gRain_obj <- togRain(x = dag |> toMatrix(), data = bnlearn::learning.test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.