Skip to content
Snippets Groups Projects
Commit 3fc2e216 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

Fix bug in ML forecasting if observables are not included

(cherry picked from commit 156397ec)
parent d697a0b4
Branches
Tags
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment