approximate_inference function

Performs approximate inference forecasting with the GDBN over a dataset