sequence to sequence, working in batches for LSTM and/or NLARX
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Venu
el 15 de Mzo. de 2024
Hi @Leon
You might find these documentations helpful
You can also use combineDatastore for your purpose.
Alternatively, you can also create a custom layer that accepts multiple inputs.
0 comentarios
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!