-
Notifications
You must be signed in to change notification settings - Fork 78
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
TopDown method (proportion_averages, average_proportions) broken in 0.3.0, 0.4.0 and 0.4.1 #253
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
Hey. The TopDown method requires the in-sample predictions of the models to be provided in Y_hat_df = fcst.forecast(h=4, fitted=True) # added fitted=True here
insample_df = fcst.forecast_fitted_values() # get in-sample predictions
Y_rec_df = hrec.reconcile(Y_hat_df=Y_hat_df, Y_df=insample_df, S=S, tags=tags) # provide insample_df through Y_df |
Thanks for the quick response. I followed your suggestion and adding the model insample predictions worked. I have some questions regarding the TopDown (average_proportions and proportion_averages) methods are how the are calculated.
For forecast_proportions would it not make sense to use the out of sample predictions? |
This comment was marked as off-topic.
This comment was marked as off-topic.
hey @jmberutich, regarding your questions on the methods:
|
So, the solution would be Y_hat_df = fcst.forecast(h=group.horizon, fitted=True)
insample_df = fcst.forecast_fitted_values()
Y_rec_df = hrec.reconcile(Y_hat_df=Y_hat_df, Y_df=insample_df, S=S_df, tags=tags) option B insample_df = Y_train_df.copy()
insample_df["AutoARIMA"] = insample_df["y"]
insample_df["Naive"] = insample_df["y"]
Y_rec_df = hrec.reconcile(Y_hat_df=Y_hat_df, Y_df=insample_df, S=S_df, tags=tags) |
What happened + What you expected to happen
The TopDown methods:
Are broken after version 0.2.1.
Error output:
Versions / Dependencies
v.0.3.0
v0.4.0
v0.4.1
Reproduction script
Issue Severity
None
The text was updated successfully, but these errors were encountered: