how can ı use "minibatch​predict(ne​t,XTest);" command on simulink?

16 ビュー (過去 30 日間)
Bahadir
Bahadir 2025 年 9 月 29 日
コメント済み: Bahadir 2025 年 10 月 8 日
I trained a LSTM network.
How can I use "scores = minibatchpredict(net,XTest);" and "YPred = predict(net, XTest);" commands on Simulink?

回答 (1 件)

AJ Ibraheem
AJ Ibraheem 2025 年 10 月 6 日
編集済み: Walter Roberson 2025 年 10 月 6 日
The 'Stateful Predict' block might be what you're looking for. See https://uk.mathworks.com/help/deeplearning/ref/statefulpredict.html
  4 件のコメント
Bahadir
Bahadir 2025 年 10 月 8 日
Thank you for your answer.
could you give more detail information about how to get same result on simulink. How to use predict command at matlab function block on simulink.
function y= fnc(u)
persistent net
if isempty(net)
net = coder.loadDeepLearningNetwork('32.mat');
end
input= [u];
input=rescale(input);
XTrain = {input'};
output= predict(net, XTrain);
y=output{1};
end

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeReinforcement Learning についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by