View source: R/dbn_inference.R
approximate_inference | R Documentation |
Given a bn.fit object, the size of the net and a dataset, performs approximate forecasting with bnlearns cpdist function over the initial evidence taken from the dataset.
approximate_inference(dt, fit, obj_vars, ini, rep, len, num_p)
dt |
data.table object with the TS data |
fit |
bn.fit object |
obj_vars |
variables to be predicted |
ini |
starting point in the dataset to forecast. |
rep |
number of repetitions to be performed of the approximate inference |
len |
length of the forecast |
num_p |
number of particles to be used by bnlearn |
a list with the mu results of the forecast
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.