Info

This question is closed. Reopen it to edit or answer.

Why the "Stateful Classify" block at simulink is predict differently than the "minibatchpredict" and "predict"command on matlab command window

11 views (last 30 days)
I have trained a LSTM network for fault detecting and load it in Simulink blocks "stateful classify".
Although I use all time same data and network, Why the "Stateful Classify" block at simulink is predict wrongly than the "minibatchpredict" and "predict" command on matlab command window?
when I use "minibatchpredict" or "predict" command at matlab command window, The result is very correct (%99)
scores = minibatchpredict(net,XTest);
and
YPred = predict(net, XTest);
But when I use Stateful Classify at simulink, The result of Stateful Classify (ypred) are very wrong.

Answers (0)

This question is closed.

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!