using neural network in Simulink

3 ビュー (過去 30 日間)
James Z
James Z 2021 年 11 月 9 日
コメント済み: James Z 2021 年 11 月 10 日
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 Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by