Closed Inglezos closed 3 years ago
Yes, this could be fixed.
Counts of days
starts from 0 at this time and confusing. So, days=[1]
means that the end date of the future phase is 13Apr when today is 11Apr with the latest version.
Scenario.simulate()
simulates to the next date (14Apr) of the end date (13Apr). This behavior is from PhaseUnit.simulate()
. PhaseUnit.simulate()
needs this begavior internally because values on 14Apr will be used as initial values when the next phase (14Apr - ) is available. However, yes, this is a confusing behavior for users of Scenario.simulate()
. The last date (14Apr) should be removed from Scenario.simulate()
output.
The last date of simulation was changed from the next date (14Apr in the above example) to the exact end date (13Apr) at version 2.19.1-zeta-fu2 with #718.
Next, I will fix the count of days
in prediction.
I think this was fixed with #756 (version 2.19.1-theta).
I think so too, we can close it.
Summary
For example if I use
ita_scenario.fit_predict(oxcgrt_data=oxcgrt_data, name="Forecast", days=[1])
and thenita_sim_df = ita_scenario.simulate(variables=["Confirmed", "Infected", "Fatal", "Recovered"], color_dict={"Confirmed": "blue", "Infected": "orange", "Fatal": "red", "Recovered": "green"}, name="Forecast")
, I see that in the plot but mostly in the ita_sim_df, the future days are up to 14Apr21, not only up to one day into the future (that would be 11 or 12 Apr21) as I would expect by usingdays
. Is this considered normal? Because I feel that a value of around 2-3 days are added beforehand to the output days.Codes
Environment