Closed sayonsom closed 4 years ago
(Expecting 07-11-2019, instead)
@sayonsom why are you expecting that as forecast start date? Running the following
import pandas as pd
csv_url = "https://gist.githubusercontent.com/sayonsom/af6604bb38d50e366e53d1ccc994b269/raw/7fa603a4618286aa4376556043627e9383d27117/Test_example.csv"
df = pd.read_csv(csv_url, index_col=None, names=['Timestamp', 'measured_value'], parse_dates=False)
freq = "15min"
# This is the data you fed into the predictor
target = df['measured_value'].to_numpy()
# This is the start date of the data you fed into the predictor
start = pd.Timestamp('2019-04-11 00:00:00', freq=freq)
print(start + len(target) * start.freq)
yields 2020-03-31 07:00:00
@lostella Thanks for clarifying. I was not able to comprehend how to define a "begin forecast from this date onwards" from the documentation. I will close this issue.
I see, happy if that helps. Just to clarify: is that the forecast start date that you get? If not, there might still be an issue... I couldn’t yet run your full example, will do that to double check though 👍🏻
Description
I am not getting the anticipated prediction start date. My dataset ends at 07-10-2019, and I am trying to predict for the next couple of days. However, my prediction starts at a much later date, specifically: 10-26-2021
To Reproduce
Please try executing the following stand-alone code as a minimal working example of my problem:
Error message or code output
(Expecting 07-11-2019, instead)
Environment