how can ı use "minibatchpredict(net,XTest);" command on simulink?
23 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I trained a LSTM network.
How can I use "scores = minibatchpredict(net,XTest);" and "YPred = predict(net, XTest);" commands on Simulink?
0 commentaires
Réponses (1)
AJ Ibraheem
le 6 Oct 2025 à 13:16
Modifié(e) : Walter Roberson
le 6 Oct 2025 à 16:32
The 'Stateful Predict' block might be what you're looking for. See https://uk.mathworks.com/help/deeplearning/ref/statefulpredict.html
3 commentaires
AJ Ibraheem
il y a environ 18 heures
> The results of Stateful Predict is different from minibatchpredict.
Yes it is understandable that you're getting different results. The stateful predict block would update the network states after prediction, to get the same result with the predict block, you'd have to follow [YPred, net.State] = predict(net, XTest) https://uk.mathworks.com/help/deeplearning/ref/dlnetwork.predict.html#d126e73498
> Using a MATLAB function block (as opposed to the Stateful predict block) for neural network prediction is valid.
It is possible that a layer in your network is not supported for the mkldnn target.
Do you mind sharing more about your current setup?
Walter Roberson
il y a environ 13 heures
Using a Redistributable is not enough: you need to use the actual Visual C++ compiler. https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&passive=false
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!