-
Notifications
You must be signed in to change notification settings - Fork 75
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
[FIX] Aggregate unbalanced datasets #190
[FIX] Aggregate unbalanced datasets #190
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@FedericoGarza looks like the change to
We get |
Not a bug per se, but I'd clarify the exception for not including |
My current workaround is to create a copy of train_df without the leading zeros and use that for the forecasting model. For reconcile() I still use the version with the leading zeros. Note that aggregate() also creates all-zero time series for missing hierarchical combinations, so you also have to add all-zero forecasts to Y_hat_df/fcst_df for unique_ids artificially created by aggregate(). |
hey @NudnikShpilkis and @candalfigomoro! Thank you for your feedback! I've updated the branch to consider this case in the Thank you! |
@FedericoGarza looks like the code now runs without error. I haven't tested for validity of predictions though. |
What's the exact formulation of your code? If you |
…into 189-aggregate-adds-leading-zeros-to-series-with-different-dates
This PR fixes #189.
Tests were added comparing the fixes with the deprecated function
aggregate_before
(which works as expected in this case).