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
Does multi-stage forecasting supports weekly aggregation as-well #72
Comments
Hi @canamika27 Thanks for checking out the new functionality! The multistage algorithm is supposed to work with any frequencies. As an initial implementation of the algorithm, we don't see significant gains on weekly aggregation vs daily aggregation, thus the code in the current format does not work for weekly aggregation yet. But in our next release we will extend the multistage algorithm to support more scenarios. |
@canamika27 But as a work around, in the aggregation string, instead of using "W", you could try "7D" and it should work in that way. |
@KaixuYang Thanks for the information. Actually I tried using both 'W' & '7D' So when I used weekly config with '364D' --(52W*7) like below: the daily modeldaily_config = SilverkiteMultistageTemplateConfig( the weekly modelweekly_config = SilverkiteMultistageTemplateConfig( I got the below error: /usr/local/lib/python3.7/dist-packages/greykite/sklearn/estimator/silverkite_multistage_estimator.py in fit(self, X, y, time_col, value_col, **fit_params) TypeError: '<' not supported between instances of 'pandas._libs.tslibs.offsets.Day' and 'pandas._libs.tslibs.offsets.Week' Similarly I also tried with '52W' the daily modeldaily_config = SilverkiteMultistageTemplateConfig( the weekly modelweekly_config = SilverkiteMultistageTemplateConfig( And for this I am getting below errors: /usr/local/lib/python3.7/dist-packages/greykite/sklearn/estimator/silverkite_multistage_estimator.py in (.0) AttributeError: 'pandas._libs.tslibs.offsets.Week' object has no attribute 'delta' Is there any other part we need to change? |
Hi @canamika27 thanks for sharing the code. The current implementation of the algorithm does not support frequencies with "W". For the |
Hi Team,
Can you please confirm if multi-stage forecasting works on weekly aggregation as well.
I tried with data that has daily frequency, so for one stage I kept the daily frequency & next stage its the weekly aggregation of the daily data.
But getting the below error
TypeError: '<' not supported between instances of 'pandas._libs.tslibs.offsets.Day' and 'pandas._libs.tslibs.offsets.Week'
The text was updated successfully, but these errors were encountered: