Incorporate trained LSTM network in simulink

10 views (last 30 days)
I have to validate my trained network on the system. For this I need to make a simulink model. I have to get the trained network in simulink. gensim does not work since it can only be used for NARX trained network, but I have my network trained using LSTM. Please help.
  1 Comment
Prajith Chilummula
Prajith Chilummula on 10 May 2019
As an implementation method, you load the weight information of each unit, generate a calculation formula as an m script using it, and introduce the generated m script as a Matlab Function block.
The below link might be helpful:

Sign in to comment.

Answers (1)

Arkadiy Turevskiy
Arkadiy Turevskiy on 18 Oct 2021
Starting with 21a you can use Stateful Predict and Stateful Clasiffy blocks.
Take a look at this example too.
Hope this helps.

Community Treasure Hunt

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

Start Hunting!