Borrar filtros
Borrar filtros

Fully connected layers in LSTM regression

1 visualización (últimos 30 días)
Ahmed Elbeltagi
Ahmed Elbeltagi el 27 de Sept. de 2020
Comentada: Ahmed Elbeltagi el 30 de Sept. de 2020
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

Respuesta aceptada

Srivardhan Gadila
Srivardhan Gadila el 30 de Sept. de 2020
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 comentario
Ahmed Elbeltagi
Ahmed Elbeltagi el 30 de Sept. de 2020
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming 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!

Translated by