Chad Parmet
10/02/2023, 6:10 PMmlforecast
! When the package runs in default mode using the recursive strategy (predictions at prior horizons become the lag features for predictions at the next horizon), is it possible to see the lag features generated through this process?
When i do...
model.fit(X...)
model.predict(h=6)
For QC purposes, I'd like to see how .predict()
there generated the lag features recursively. Is that possible? Thank you!Chad Parmet
10/02/2023, 6:47 PMChad Parmet
10/03/2023, 4:25 PM.predict()
Does X_df
need to be sorted in a certain way?
When I run .predict()
on my dataset (multiple time series), the final features from the callback show that my dynamic features (X_df
) are misaligned with the unique_id & ds pairs from the lags and static features.
I think I see the same pattern in the M4 data, so I must be approaching X_df wrong? Details in threadChad Parmet
10/03/2023, 4:25 PMChad Parmet
10/03/2023, 4:26 PMChad Parmet
10/03/2023, 4:26 PMChad Parmet
10/03/2023, 4:29 PMtime_id
) appears to be misaligned
We are predicting the next 3 steps for each of the two series
For the first row, this is clearly from H1
. time_id is the last time_id in training data + 1, and lag1 is the last y.
But for the second row, it looks like we have the time_id from the next row of H1
but the lags from H196
Chad Parmet
10/03/2023, 4:30 PMX_df
incorrectly?
Thanks in advance for any insights!José Morales
10/03/2023, 4:34 PMChad Parmet
10/03/2023, 4:35 PMChad Parmet
10/03/2023, 9:01 PM