필터 지우기
필터 지우기

LSTM Example for Multi input and Multi outputs

조회 수: 42 (최근 30일)
abhilasha singh
abhilasha singh 2021년 6월 17일
편집: David Willingham 2021년 10월 25일
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
Percy Hu
Percy Hu 2021년 6월 27일
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
Samuel Somuyiwa 2021년 7월 7일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Samuel Somuyiwa
Samuel Somuyiwa 2021년 7월 7일
편집: David Willingham 2021년 10월 25일
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

카테고리

Help CenterFile Exchange에서 Sequence 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