approximate_inference {dbnR} | R Documentation |
Performs approximate inference forecasting with the GDBN over a dataset
Description
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.
Usage
approximate_inference(dt, fit, obj_vars, ini, rep, len, num_p)
Arguments
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 |
Value
a list with the mu results of the forecast
[Package dbnR version 0.7.8 Index]