forecast_ts function

Performs forecasting with the GDBN over a dataset