how to fix the following error-

조회 수: 2 (최근 30일)
Annie micheal
Annie micheal 2017년 10월 19일
댓글: Walter Roberson 2017년 10월 26일
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
Annie micheal
Annie micheal 2017년 10월 26일
편집: Walter Roberson 2017년 10월 26일
Walter Roberson
Walter Roberson 2017년 10월 26일
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/

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by