sequence to sequence, working in batches for LSTM and/or NLARX

11 次查看(过去 30 天)
Per batch, I have two input sequences and one output sequence. All three have the same (limited) length for training (in this example 30). Every individual batch has the same length (in this case 30)
So each batch looks like (in case of length of 30):
Input 1: X1-1, X1-2, X1-3.......X1-30
Input 2: X2-1, X2-2, X2-3.......X2-30
Output 3: Y1-1, Y1-2, Y1-3.......Y1-30
There will be a x amount of batches with the same builtup. Each batch need to train the LSTM and NLARX system/network until the network is trained for all batches. So I assume the batch size will be one.
After the training of the network the goal is to forecast for one batch the Output Y given:
Input 1 (1:30), Input 2(1:30, and part of the Output. For example Y(1:15) and then predict Y(16:30) or a variant of the division (1:20 and 21:30).
As I am not proficient enough with deeplearning, can someone help with the requirded code for using LSTM and for using NLARX, for training and forecasting per batch as described above, that would be of great help?
Many thanks in advance.
Best wishes
Leon

回答(1 个)

Venu
Venu 2024-3-15

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by