Defines functions nparams.fitted nparams.backend

# number of parameters for a DAG and an associated data set.
nparams.backend = function(x, data, debug = FALSE) {

        graph = x,
        data = .data.frame.column(data, names(x$nodes)),
        debug = debug)


# number of parameters for a fitted network.
nparams.fitted = function(x, effective = FALSE, debug = FALSE) {

        bn = x,
        effective = effective,
        debug = debug)


Try the bnlearn package in your browser

Any scripts or data that you put into this service are public.

bnlearn documentation built on Sept. 7, 2021, 1:07 a.m.