It is possible to implement a LSTM neural network built with Keras Python in a Simulink block?
Mostrar comentarios más antiguos
Hello!
I have a LSTM neural network (for time series prediction) built in Python with Keras. So I have the model (structure and weights) in .h5 file.
It is possible to implement a LSTM neural network built with Keras Python in a Simulink block?
I would to create a simulink file that takes in input 2 signals and passing through the NN block , gives me as output the predicted signal.
2 comentarios
Szabolcs Mike
el 6 de Mayo de 2019
Same question here too! I would like to use a LSTM prediction model trained with keras in Simulink. I can import the model to Matlab workspace, but not able to use it in a Matlab function block in Simulink!
Varoun Sitram
el 30 de Mzo. de 2020
I'm having this same problem. Have you found a solution?
Respuestas (2)
Oskar Karnblad
el 11 de En. de 2018
0 votos
I'm also interested in this. Have you found a solution yet?
1 comentario
ARUN
el 21 de Feb. de 2021
anyone found answer for this? I am facing the same problem now
Arkadiy Turevskiy
el 18 de Oct. de 2021
0 votos
You can do it in two steps:
- Import a model into MATLAB. See this function for TensrFlow 2 or this function to import from Keras.
- Once you have imported the model, use Stateful Predict block. This block became available in 21a.
HTH.
Arkadiy
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!