-
Notifications
You must be signed in to change notification settings - Fork 755
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
Zebras: Add update to TimeSeries. #2855
base: dev
Are you sure you want to change the base?
Conversation
src/gluonts/zebras/_time_frame.py
Outdated
|
||
The new frame spans both input frames and inserts default values if | ||
there is a gap between the two frames. If both frames overlap, the | ||
second can overwrite the values of the first frame. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can or does?
second can overwrite the values of the first frame. | |
second overwrites the values of the first frame. |
src/gluonts/zebras/_time_series.py
Outdated
|
||
The new series spans both input series and inserts default values if | ||
there is a gap between the two series. If both series overlap, the | ||
second can overwrite the values of the first series. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
second can overwrite the values of the first series. | |
second overwrites the values of the first series. |
src/gluonts/zebras/_time_frame.py
Outdated
for name, (self_col, other_col, tdim) in rows_to_columns( | ||
(self.columns, other.columns, self.tdims) | ||
).items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What columns are taken? Is it assumed that the two frames have the same columns? On only the ones from self
are considered?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the idea is that they need to be identical at the moment. I guess what we can do is to allow to update the result only partially and just fall back on the default value. That way one can even update different parts of the time frame at different times.
Allow merging of two time series.
With
update
it is possible to gradually build up a time series by updating the time series.This works by creating a new series that spans both input series and is pre-filled with a default values. Then values are copied for the input series. This has some implications: If there is an overlap, the values of the second series overwrite the values of the first series in the overlapping span. Also, the values spanning between the two series remain the default value.
TODO:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup