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

[BUG] DLinear fails to predict >1 variates in presence of static covariates #2036

Closed
felixdivo opened this issue Oct 25, 2023 · 0 comments · Fixed by #2070
Closed

[BUG] DLinear fails to predict >1 variates in presence of static covariates #2036

felixdivo opened this issue Oct 25, 2023 · 0 comments · Fixed by #2070
Labels
bug Something isn't working

Comments

@felixdivo
Copy link
Contributor

Describe the bug
Predicting two or more variates fails if there are static covariates present and shall be used.

To Reproduce

import pandas as pd
from darts.datasets import ETTh1Dataset
from darts.models import DLinearModel

series = ETTh1Dataset().load().astype("float32")

target = series["HUFL"].stack(series["LULL"]).with_static_covariates(pd.Series([3, 4]))
past_cov = series["MULL"]

model = DLinearModel(16, 4, use_static_covariates=True)
model.fit(series=target, past_covariates=past_cov)

---> RuntimeError: mat1 and mat2 shapes cannot be multiplied (32x2 and 4x8)

Expected behavior
Not a crash, but nice forecasts.

System (please complete the following information):

  • Python version: 3.10.13
  • PyTorch version: 2.1.0
  • darts version: 0.26.0

Additional context
Possibly related to #1873 and #2035.

@felixdivo felixdivo added bug Something isn't working triage Issue waiting for triaging labels Oct 25, 2023
@madtoinou madtoinou removed the triage Issue waiting for triaging label Oct 25, 2023
@github-project-automation github-project-automation bot moved this to Released in darts Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

2 participants