-
Notifications
You must be signed in to change notification settings - Fork 292
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
Address issues #27, #28, #29, #34 about timestamps & sampling granularities. #30
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix the handling of integer # of timestamps in resample_time_stamps.
Make SARIMA resample to default seasonality, instead of hourly.
aadyotb
force-pushed
the
aadyot/timestamps
branch
from
October 12, 2021 00:43
3008ed2
to
b4d31a7
Compare
@datenzauberai this PR should address the issues you raised. Please let me know if you have further concerns. |
Awesome that you’ve been able to make this big change this fast! Looking forward to try this out. |
Thank you @aadyotb for tackling this issue! Since a lot of time series out in the wild are monthly-based, right now most models in Merlion are unusable in a lot of scenarios. |
aadyotb
changed the title
Address issues #27, #28, #29 about timestamps & sampling granularities.
Address issues #27, #28, #29, #34 about timestamps & sampling granularities.
Oct 15, 2021
…yot/timestamps
paulkass
approved these changes
Oct 18, 2021
This was referenced Oct 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues #27, #28, #29, and #34 point out some limitations on how Merlion handles monthly/quarterly/yearly sampling granularities. Specifically, we assume that all regular sampling granularities must be a fixed number of seconds, but this is not true for commonly used granularities like monthly or quarterly.
This PR changes the internal representation of timedeltas to be
pandas
objects/strings in various places, rather than afloat
number of seconds. This addresses Issues #29 and #34. It also fixes a bug whereForecasterBase.resample_time_stamps
mishandled an integer number of time stamps (#28) and updates Sarima's default granularity to beNone
rather than1h
(addressing #27).