Hidden side-effects of make_future_dataframe function #1112
Closed
sivikt
started this conversation in
Feature Requests & Feedback
Replies: 1 comment
-
Hey @sivikt |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All!
Great library - loving it so far.
I observe a strange thing. Starting from the 0.4.2 the function mode.make_future_dataframe(...) silently changes the model state: removing predefined regressors.
Consider the code. It creates a model with 1 future regressor r_lagged and then trying to make a future using make_future_dataframe function. Result contains columns r_lagged but with NaNs for the last 5 past data points which is strange since the whole past is provided.
It is because of check_single_dataframe gets the last past historic data points where r_lagged has the only value 5.
I do not quite understand why it so having trained model with multiple past regressor unique. Why simple utility function changes the model state, it was not the case in the previous versions. One can see that check_single_dataframe marks a regressor as "to be removed" if the regressor has only 1 unique value but it considers only N past points (N lags) putting aside the future_df.
What do you think? Should we consider opening an issue/PR to adjust the behavior or there some hidden algorithm intrinsics which require such model state manipulation?
Beta Was this translation helpful? Give feedback.
All reactions