
Last chance! 50% off unlimited learning
Sale ends in
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)
a list with the mu results of the forecast
data.table object with the TS data
bn.fit object
variables to be predicted
starting point in the dataset to forecast.
number of repetitions to be performed of the approximate inference
length of the forecast
number of particles to be used by bnlearn