Problem with Multivariate LSTM Forecasting

2 ビュー (過去 30 日間)
Mohamed Nedal
Mohamed Nedal 2020 年 4 月 7 日
コメント済み: Ehsan Kamjoo 2021 年 1 月 12 日
Hello,
Kindly check the attached code with a data workspace example.
I would like to implement an LSTM network that forecasts an output (the last column) by means of 7 inputs.
When I run the code I get this error:
Error using trainNetwork (line 170)
To RESHAPE the number of elements must not change.
Error in multi_lstmOMNI_noStand2 (line 46)
net = trainNetwork(XTrain,YTrain,layers,options);
Caused by:
Error using reshape
To RESHAPE the number of elements must not change.
I would like to know how to fix it and how to proceed the prediction for any defined time step.
If you have also any suggestion to improve the code that would be great.
I'm still a novice with this. If you could help that would be much appreciated.
Thank you!
  1 件のコメント
Ehsan Kamjoo
Ehsan Kamjoo 2021 年 1 月 12 日
Hi,
Have you found the answer? I have the same problem.
Thank you,

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by