Fully connected layers in LSTM regression

4 ビュー (過去 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 Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by