how to fix the following error-
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2017-10-26
Okay, that is progress.
The Neural Network predict() command requires either a
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling and Prediction with NARX and Time-Delay Networks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!