Given a bn.fit object, the size of the net and a data.set, performs approximate forecasting with bnlearns cpdist function over the initial evidence taken from the data set.
approximate_inference(dt, fit, size, obj_vars, ini, rep, len, num_p)
data.table object with the TS data
bn.fit object
number of time slices of the net
variables to be predicted
starting point in the data set to forecast.
number of repetitions to be performed of the approximate inference
length of the forecast
number of particles to be used by bnlearn
the results of the forecast