add_attr_to_fit: Adds the mu vector and sigma matrix as attributes to the...

View source: R/dbn_learn.R

add_attr_to_fitR Documentation

Adds the mu vector and sigma matrix as attributes to the bn.fit or dbn.fit object

Description

Adds the mu vector and sigma matrix as attributes to the bn.fit or dbn.fit object to allow performing exact MVN inference on both cases. It also adds the number of time slices of the net for future inference.

Usage

add_attr_to_fit(fit, size)

Arguments

fit

a fitted bn or dbn

size

number of time slices of the net

Value

the fitted net with attributes


dbnR documentation built on Oct. 5, 2022, 1:07 a.m.