How to set window size for LSTM in Matlab?

14 次查看(过去 30 天)
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 个评论
Lucas Ferreira-Correia
Do I have to process the data in a special way perhaps?

请先登录,再进行评论。

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-9-22
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 个评论
Ameer Hamza
Ameer Hamza 2020-9-23
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 2021-9-6
编辑:mhd z 2021-9-6
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by