as_mlr {bnclassify} | R Documentation |
Convert to mlr
.
Description
Convert a bnc_bn
to a Learner
object.
Usage
as_mlr(x, dag, id = "1")
Arguments
x |
A |
dag |
A logical. Whether to learn structure on each training subsample. Parameters are always learned. |
id |
A character. |
Examples
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
[Package bnclassify version 0.4.8 Index]