using neural network in Simulink

3 次查看(过去 30 天)
Hi,
I have trained a neural network using LSTM method for sequence classification and load it in Simulink blocks "stateful classify", "predict", "classify", and expect a category number for the outcome of the blocks when I apply same-type sequences, but I get only a decimal between 0 and 1 instead, as shown in below pic:
any idea what is wrong with the blocks I am using? I was going to attach the Simulink model and workspace data related to the trained neural network model and input time series required to run the Simulink model but they were over size limit. will appreciate your response.
With Regards

采纳的回答

David Willingham
David Willingham 2021-11-9
Hi,
Are you asking why the "Predict" block is acting differently than the "Stateful Predict" block? IF so, are you specifying the same model in each?
If so, these block behave differently. The main difference is that if you are using a trained network with at least one recurrent layer (for example, an LSTM network), then Stateful predict is the block to use.
  2 个评论
James Z
James Z 2021-11-10
Hello,
Thanks for your response.
The issue is that I expected a class number, say 0 or 1 from the neural network model, not a continuous decimal which I don't know what it indicates and how to interpret.
With Regards
James Z
James Z 2021-11-10
.. and yes, I loaded the same neural network in all blocks, stateful classify, predict, etc. The pattern recognition blocks are generated by hitting "Export to Simulink" button in neural network app interface which opens by typing "nnstart", or particularly "nprtool".

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by