Open albertotb opened 6 years ago
Hi albertotb,
Thanks for identifying the issue. This is a bug and should have been fixed in my most recent push. The prediction function was previously implemented based on the assumption that there is no follow-up operations. So it will change the model status for re-using some of the model structure. I now diverted the prediction calculation into a shadow model, so that the status of the main model won't change.
Could you give it a try with the most recent github version? Thanks!
It seems that copying the model beforehand did the trick, in this version it works perfectly. Thanks!
Hi all,
The steps to reproduce my problem are:
I would expect the prediction in step 3 and the last prediction in step 4 to be the same. However, it seems that somehow predictN is changing the dlm object, which does not make sense to me. What am I missing? Installed versions:
I attach the code to reproduce the problem below:
Thanks in advance