can i implement lstm layer from scratch using matlab in sequence to sequence regression
3 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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 Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!