How to integrate a trained LSTM neural network to a Simulink model?
조회 수: 70 (최근 30일)
이전 댓글 표시
Hi, I have trained and tested a LSTM NN on Matlab 2018a, but I`m having problem to find a way to make my trained 'net' to integrate with a Simulink model. I have tried to create a Simulink block using 'gensim(net)' but it doesn`t support LSTM. If anyone found a way around that, I'll appreciate if you could share it. Thank you,
댓글 수: 3
Muhammad Faisal Khalid
2021년 10월 16일
Hi, I have trained and tested a LSTM NN on Matlab but do not know how to implement trained 'net' to integrate with my Simulink model.
anybody know?
David Willingham
2021년 10월 18일
You can use the Stateful predict, or Stateful classify to for using a trained LSTM with Simulink
Here are some links:
채택된 답변
David Willingham
2021년 10월 19일
You can use the Stateful predict, or Stateful classify to for using a trained LSTM with Simulink
Here are some links:
댓글 수: 0
추가 답변 (2개)
CARLOS VIDAL
2018년 4월 10일
편집: CARLOS VIDAL
2018년 5월 24일
댓글 수: 3
Jiahao CHANG
2021년 5월 21일
Meeting the same error, just like Carlos said, its matrices dimentions issue. As a new of lstm, X here i think it's a matrix of time_steps*features, rather than the testing dataset you used in validation of this model.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!