how to fix the following error-

1 view (last 30 days)
Annie micheal
Annie micheal on 19 Oct 2017
Commented: Walter Roberson on 26 Oct 2017
I'm using matlab 2015b version. i ve constructed a Multilayer perceptron model to predict the gender of a person. While testing the model i get the following error-Systems of struct class cannot be used with the "predict" command. Convert the system to an identified model first, such as by using the "idss" command. Error in maintest (line 55) label = predict(model,S); how to fix this error..
  14 Comments
Walter Roberson
Walter Roberson on 26 Oct 2017
Okay, that is progress.
The Neural Network predict() command requires either a
SeriesNetwork or a DAGNetwork (Directed acyclic graph)
When I examine articles about MLP, I find that they are a non-cascaded Feed Forward Network, such as one might create with feedforwardnet() . However, feedforwardnet() is used for function approximation and clustering, and predict() is not applicable to such networks. Considering your purpose, I wonder if you would be better off with a <https://www.mathworks.com/help/nnet/ref/patternnet.html patternnet() for pattern recognition? Those do not use predict() either though.
The predict() for SeriesNetwork deals with networks that look fairly different in structure that MLP would have -- although possibly you could use such a network, it looks much more complicated than you need to me.
Anyhow, you have the fundamental problem that the third-party MLP training routine that you are using does not create a network structure that is in the form expected by any of the Neural Network Toolbox functions. If we could narrow down your needs, then possibly we could extract information from the training you did and use it to build something that could be used with the Neural Network toolbox.
... but I suspect that what you are supposed to do with the training structure you created is to call a third party routine to use it with. Certainly that would be the case if you are using http://3options.net/brainannex/multilayer-perceptron-in-matlab-octave/

Sign in to comment.

Answers (0)

Categories

Find more on Deep Learning with GPU Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!