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
Seasonality changepoint detection does not seem to work with cross-validation for Silverkite #55
Comments
Hi @julioasotodv thanks for the detailed example. Somehow the code ran without error on my machine (after I change |
Hi @KaixuYang, after some more testing (also on Mac, as I was using Windows before) it seems that my pandas version was the issue. I was using So downgrading to pandas 1.2 solves the issue, which is great to know. Shall I keep this issue open or perhaps a PR in the meantime for modifying Thanks a lot |
Hi @julioasotodv thanks for the investigation. Actually the root cause of this issue is that this is a monthly data set, and since the number of potential changepoints are too many, it brings duplicates into the columns. Instead of forcing the pandas version to be 1.2, we would like to fix this issue so it will get along with pandas 1.3 as well. Could you help us submitting a PR to fix this? I think a reasonable fix would be that: in line 230 of |
Hi @KaixuYang, thank you for reaching out. I understand the issue. However, there is not change in pandas 1.3 that should yield these two different behaviors as far as I know. Will try to debug and search in pandas' changelogs before "hardcoding" a Thanks! |
Thanks @julioasotodv ! Yeah actually |
Fixed in the next release. |
Hi,
First of all thank you for open-sourcing this library. It's really complete and well though (as well as the Silverkite algorithm itself).
However, I think I have spotted a potential bug:
It seems that the option
seasonality_changepoints_dict
inModelComponentsParam
does seem to break some functionality within pandas, when running Silverkite with cross-validation.Here's a complete example (using Greykite 0.2.0):
If we run the piece of code above, everything works as expected. However, if we activate cross-validation (increasing
cv_horizon
to5
for instance), Greykite crashes. This happens unless we remove seasonality changepoints (through removingseasonality_changepoints_dict
).The crash traceback looks as follows:
It would be great to cross-validate when seasonality changepoint is activated, as it allows to learn multiplicative seasonalities for instance in a similar fashion as Prophet or Orbit do.
Thank you!
The text was updated successfully, but these errors were encountered: