Fully connected layers in LSTM regression

조회 수: 10 (최근 30일)
Ahmed Elbeltagi
Ahmed Elbeltagi 2020년 9월 27일
댓글: Ahmed Elbeltagi 2020년 9월 30일
Hello everyone,
Please, i am impementing the LSTM regression using Matlab R 2019b but i have error related to fully connected layers (see the attached screenshot).
Please help me to solve this error.
Thanks

채택된 답변

Srivardhan Gadila
Srivardhan Gadila 2020년 9월 30일
You have to remove the space present between the function name and the parentheses i.e., use the below code instead:
layers = [sequenceInputLayer(inputSize)
lstmLayer(numHiddenUnits)
fullyConnectedLayer(numResponses)
regressionLayer];
You can also refer to Command vs. Function Syntax.
  댓글 수: 1
Ahmed Elbeltagi
Ahmed Elbeltagi 2020년 9월 30일
Thanks sir for your help.
I have used your code and it is working.
Also, i found another error in this code as shown in the attached screenshot image regarding IntialLearningRate and TrainingOptions.
Please chech the error.
Waiting for your support.
Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by