-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with forecasted/predictive state variables #115
Comments
@kevin-vanvaerenbergh thanks for raising the issue! I think there is a misunderstanding on what # Check if agent uses predictions in state and parse predictive variables
self.is_predictive = False
self.predictive_vars = []
if any([obs in self.all_predictive_vars for obs in observations]):
self.is_predictive = True |
Thanks @JavierArroyoBastida for your clarification. I understand how you use it now. But the check always passes when you are using the 'time' variable since that is in both predictive_vars as observations. So maybe the 'time' variable can be removed as such that you raise an error when the framework is misused. I added an alternative where you do not need to define the forecasted values as they would be automatically transformed to the forecasted variant of the normal measurement when you define a predictive horizon. Therefore I use this update:
Since measurements and forecasted values use the same name but have no prefix, I just search for the forecasted values that are linked to the measurements in the observations. |
That's a good catch, thanks! I think what would make the most sense is to remove the |
There you check if the observations are part of the predictive vars (which is generated by running the forecast call to the Boptest framework)
When I check the observation keys, they do not seem to match the keys coming from a forecast call.
The keys of these two calls are not the same, thus the loop in the code above is never run since none of the observation names are found in the forecast keys.
The text was updated successfully, but these errors were encountered: