LSTM Example for Multi input and Multi outputs
47 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have seen many examples for multi input single output regression but i am unable to find the solution for multi output case.I am trying to train the LSTM with three inputs and two outputs.I am using sequence-to-sequence regression type of LSTM.The predicted outputs are of same value or the predicted outputs are wrong.I tried changing the training parameters but nothing worked.Please suggest some solution to work on LSTM with muti output case.This is my training graph and loss never settles to zero.
2 comentarios
Percy Hu
el 27 de Jun. de 2021
Hi,i also have the same question.
As i know, multi-output network must be completed by defining custom training progress.
However, during the mentioned progress, the function 'dlgradient' which must be used in it does not support the sequence layer like lstm or gru.
Hope someone else to solve the issue.
Samuel Somuyiwa
el 7 de Jul. de 2021
dlgradient can be used with lstm or gru except when the workflow requires computation of higher order derivatives. See the Limitations Section of dlgradient's doc page for details.
Respuestas (1)
Samuel Somuyiwa
el 7 de Jul. de 2021
Editada: David Willingham
el 25 de Oct. de 2021
You can train a multi-output LSTM network using a custom training loop. Here is an example of how to train a network with multiple outputs: https://www.mathworks.com/help/deeplearning/ug/train-network-with-multiple-outputs.html
You may also find this doc page helpful: https://www.mathworks.com/help/deeplearning/ug/multiple-input-and-multiple-output-networks.html.
0 comentarios
Ver también
Categorías
Más información sobre Sequence and Numeric Feature Data Workflows 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!