How to set window size for LSTM in Matlab?

14 visualizaciones (últimos 30 días)
Lucas Ferreira-Correia
Lucas Ferreira-Correia el 22 de Sept. de 2020
Editada: mhd z el 6 de Sept. de 2021
I was wondering how I can set the window size in an LSTM network, but cant find it under the layer settings.
I'm using the LSTM for time series regression and simulation.
Thanks!
  4 comentarios
Lucas Ferreira-Correia
Lucas Ferreira-Correia el 22 de Sept. de 2020
Do I have to process the data in a special way perhaps?
mhd z
mhd z el 6 de Sept. de 2021
I have the same problem.

Iniciar sesión para comentar.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 22 de Sept. de 2020
You can use NumHiddenUnits option to specify the window size (if by window size, you mean the number of memory units).
lstmLayer(numHiddenUnits,'OutputMode','sequence', 'NumHiddenUnits', 100); % 100 units
  5 comentarios
Ameer Hamza
Ameer Hamza el 23 de Sept. de 2020
Yes, window size defined in the researchgate link is the memory units in the lstm. It is the same as the hidden units in MATLAB.
mhd z
mhd z el 6 de Sept. de 2021
Editada: mhd z el 6 de Sept. de 2021
then what is the matlab's equivalent for number of units in python?
in python : window size = number of hidden units in matlba
in python: number of units = ? in matlab

Iniciar sesión para comentar.

Categorías

Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by