as_mlr | R Documentation |
mlr
.Convert a bnc_bn
to a Learner
object.
as_mlr(x, dag, id = "1")
x |
A |
dag |
A logical. Whether to learn structure on each training subsample. Parameters are always learned. |
id |
A character. |
data(car)
nb <- bnc('nb', 'class', car, smooth = 1)
## Not run: library(mlr)
## Not run: nb_mlr <- as_mlr(nb, dag = FALSE, id = "ode_cl_aic")
## Not run: nb_mlr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.