Commit 156397ec authored by Johannes Pfeifer 's avatar Johannes Pfeifer
Browse files

Fix bug in ML forecasting if observables are not included

parent 3c5aab9e
......@@ -87,8 +87,10 @@ switch task
i_var_obs = [ i_var_obs; tmp];
trend_coeffs = [trend_coeffs; oo_.Smoother.TrendCoeffs(i)];
end
end
trend = trend_coeffs*(gend+(1-M_.maximum_lag:horizon));
end
if ~isempty(trend_coeffs)
trend = trend_coeffs*(gend+(1-M_.maximum_lag:horizon));
end
end
global bayestopt_
if isfield(bayestopt_,'mean_varobs')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment