can i implement lstm layer from scratch using matlab in sequence to sequence regression

13 ビュー (過去 30 日間)
walaa gomaa
walaa gomaa 2022 年 12 月 1 日
コメント済み: walaa gomaa 2022 年 12 月 10 日
1)can i implement lstm layer from scratch instead of pretrained network used in this example?
2)can i change the activation functions for all cells in lstm layer?

回答 (1 件)

Ben
Ben 2022 年 12 月 1 日
Sure, I think the best way to do this would be with a custom layer, you can follow this example that implements a modified LSTM called peephole LSTM using custom layers:
https://uk.mathworks.com/help/deeplearning/ug/define-custom-recurrent-deep-learning-layer.html

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by