How to set window size for LSTM in Matlab?
조회 수: 6 (최근 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
답변 (1개)
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
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!