can an example is provided to use Attention mechanism in time series sequence data? and also how to use it with LSTM?.
조회 수: 18 (최근 30일)
이전 댓글 표시
I have large time series sequence data, and I want to use attention mechanism for this data, and also concatenate the output of the attention mechanism with LSTM. Can any one help me in this regards by solving an example?
댓글 수: 0
답변 (1개)
Hornett
2024년 9월 11일
Hi,
You can create a custom deep learning layer, then add it to your LSTM network and use trainnet to train the LSTM with attention mechanism.
Take a look at the following MATLAB answer: https://in.mathworks.com/matlabcentral/answers/1743390-how-to-create-an-attention-layer-for-deep-learning-networks
Hope it helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!