How to set window size for LSTM in Matlab?
Ältere Kommentare anzeigen
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 Kommentare
Ameer Hamza
am 22 Sep. 2020
Are you using the Deep Network Designer app?
Lucas Ferreira-Correia
am 22 Sep. 2020
Lucas Ferreira-Correia
am 22 Sep. 2020
mhd z
am 6 Sep. 2021
I have the same problem.
Antworten (1)
Ameer Hamza
am 22 Sep. 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 Kommentare
Lucas Ferreira-Correia
am 23 Sep. 2020
Ameer Hamza
am 23 Sep. 2020
Yes, this is what hidden units are doing in lstm: https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.layer.lstmlayer.html#mw_9f7c5f93-4bf2-4ddb-b922-b1c122668b9a_sep_mw_7732d29e-17f2-4182-af4b-402fdb332b67. It shows how many past datapoints are saved in LSTM.
Lucas Ferreira-Correia
am 23 Sep. 2020
Ameer Hamza
am 23 Sep. 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.
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!