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

Multivariate sequence to univariate sequence #71

Open
njujinchun opened this issue Apr 8, 2023 · 0 comments
Open

Multivariate sequence to univariate sequence #71

njujinchun opened this issue Apr 8, 2023 · 0 comments

Comments

@njujinchun
Copy link

Hi,

I'd like to use, for example, LSTM for univariate time series (TSa) forecasting given multivariate time series (including the target ones, e.g., TSa, TSb, and TSc) as inputs. Is this feasible? In lstm_model.py:

    self.encoder = LSTM_Encoder(
        input_dim=time_dim + d_yc,
        hidden_dim=hidden_dim,
        n_layers=n_layers,
        dropout=dropout_p,
    )

    self.decoder = LSTM_Decoder(
        output_dim=d_yt,
        input_dim=time_dim + d_yt,
        hidden_dim=hidden_dim,
        n_layers=n_layers,
        dropout=dropout_p,
    )

It requires that "d_yt == d_yc" (i.e., the number of the target time series should equal to that of the context time series). My question is how to handle the case with d_yt=1 and d_yc=3 in LSTM?

Thanks,

Shaoxing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant