Open svnv-svsv-jm opened 5 months ago
Thank you for pointing on this.
The exemplary LSTMModel in the notebook is not capable of doing multivariate forecasting. Currently, it seems only be able to do univariate time series forecasting.
Thus, I see the necessity to clarify this in the notebook. However, I suppose it is not a bug.
Can you kindly link the Pull Request to which you are referring?
Would tags for the objects be useful here? E.g., capability:multivariate
I have opened an issue to explain: https://github.com/sktime/pytorch-forecasting/issues/1679
Other question: if the model is interfaced in sktime
, it would be able to do multivariate forecasting through broadcasting, although that may be more wasteful than the native capability.
Would tags for the objects be useful here? E.g.,
capability:multivariate
I have opened an issue to explain: https://github.com/sktime/pytorch-forecasting/issues/1679
In this case not sure since this model is implemented in the notebook. Probably to show how to do this with PyTorch-forecasting.
Other question: if the model is interfaced in
sktime
, it would be able to do multivariate forecasting through broadcasting, although that may be more wasteful than the native capability.
Yes it would enable multivariate forecast but the underlying model is still univariate. So enabling multivariate here would lead to a different forecast than broadcasting.
In this case not sure since this model is implemented in the notebook. Probably to show how to do this with PyTorch-forecasting.
That is weird. Why would one implement it in the notebook? I think this should move to the main code base.
I have not seen the notebook, is this some kind of demo? Either way, LSTM are an important class of models, even if not the freshest one, so it should go into the main code base.
Thank you for pointing on this.
The exemplary LSTMModel in the notebook is not capable of doing multivariate forecasting. Currently, it seems only be able to do univariate time series forecasting.
Thus, I see the necessity to clarify this in the notebook. However, I suppose it is not a bug.
Can you kindly link the Pull Request to which you are referring?
The PR is in the description, isn't it?
I agree that a built-in pytorch_forecasting
multi-variate LSTM model class is what we need. I think it just fits the library to have a such a basic, popular model as built-in one.
@svnv-svsv-jm, of course, you are right!
This is the PR, right? https://github.com/sktime/pytorch-forecasting/pull/1449 Nice!
Unfortunately, there are now some conflicts due to the recent upgrade and releases of pytorch-forecasting
for python 3.11, 3.12.
(we had to prioritize the general maintenance above the historical PR)
The clashes look mostly like code formatting related - it would be greatly appreciated if you went through these and resolve any conflicts with main
- meanwhile, we'll be working on 3.13 support.
It might also be easier to review and merge if you split the PR in two parts - "tune anything" and the LSTM network - but if you feel that's too much of a hassle, I will not consider that a blocker.
Alright I rebased it, but I haven't had the time to run all the tests, so let's see what the CI/CD says.
I'm note sure I'll have time today to split it... :/
Just create this dataset:
And input it to the current
LSTMModel
in the tutorials:And you'll get:
It's just weird that there is still no fix for this, and no LSTM model out-of-the-box. I even made a fix, there is a PR.
Why does no one care about fixing this?
It is totally obscure how
pytorch_forecasting
handles uni-/multi-targets, I've also noticed that if you passtarget=["target"]
toTimeSeriesDataSet
, theTimeSeriesDataSet
behaves very differently w.r.t. if you passedtarget="target"
.Please just review that PR and even merge it, or fix it...