Learn R Programming

bnclassify (version 0.4.8)

as_mlr: Convert to mlr.

Description

Convert a bnc_bn to a Learner object.

Usage

as_mlr(x, dag, id = "1")

Arguments

x

A bnc_bn object.

dag

A logical. Whether to learn structure on each training subsample. Parameters are always learned.

id

A character.

Examples

Run this code
data(car)
nb <- bnc('nb', 'class', car, smooth = 1)
if (FALSE) library(mlr)
if (FALSE) nb_mlr <- as_mlr(nb, dag = FALSE, id = "ode_cl_aic")
if (FALSE) nb_mlr

Run the code above in your browser using DataLab