Skip to content
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

Covariates with mixed frequencies. #2098

Closed
mg10011 opened this issue Nov 28, 2023 · 2 comments
Closed

Covariates with mixed frequencies. #2098

mg10011 opened this issue Nov 28, 2023 · 2 comments
Labels
feature request Use this label to request a new feature

Comments

@mg10011
Copy link

mg10011 commented Nov 28, 2023

Is your feature request related to a current problem? Please describe.
I don't know if this feature is available or not. To my knowledge perusing the documentation, it is not, so I will ask for it. Is it possible to have the main time series be a univariate daily series that has calendar days ('B') as its frequency and many past covariates and future covariates:
-- some of the past covariates are also daily data with the same frequency as the main data series.
-- some of the past covariates are measured and sampled only on a weekly, monthly, or quarterly basis
-- some of the future covariates, like day of the week or day of the month are sampled daily, including non-business days.

Please let me know if your library can handle this.

Describe proposed solution
A way to downsample the covariates (from monthly to daily, for example) where it is impossible to "peak ahead".

@mg10011 mg10011 added the triage Issue waiting for triaging label Nov 28, 2023
@madtoinou madtoinou added feature request Use this label to request a new feature and removed triage Issue waiting for triaging labels Nov 28, 2023
@dennisbader
Copy link
Collaborator

dennisbader commented Dec 1, 2023

Hi @mg10011. In Darts, you need to convert all series (past_covariates and future_covariates) to the same frequency as your target series.

prior to creating a time series, you can do some preprocessing (e.g. with pandas):

  • for data with daily frequency, you could exclude weekends and non business days.
  • for lower frequency data (weekly, monthly, ...) you would have to upsample to "B" frequency
  • for converting from higher frequency to lower frequency, we recently added the MIDAS transformer (see Is it possible for the model to make predictions over the training period?)

@dennisbader
Copy link
Collaborator

Closing, as MIDAS was added in #1820

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Use this label to request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants