How do I use the Neural Network?
2 次查看(过去 30 天)
显示 更早的评论
I have a data set that I would like to categorize into 3 groups. For practice I made a matrix of 100rows by 4 columns to simulate 100 data points with 4 pieces of information each (in my actual data these are easting, northing, strike, and dip).
My problem is that after running the neural network clustering app (nctool), I have no idea what to do with the code that was generated. Ive saved it both as a MATLAB function and as a MATLAB Matrix only function.
But when I open the .m files and try to run them I get errors immediately.
Specifically, my (100,4) matrix is called Input, and thats all I ran through the model. That file is open, and both it and the neural network generated file are in the same folder.
When I open and run the .m file, all I get is
Error using TestCodeOption2 (line 25)
Not enough input arguments.
Error in run (line 96)
evalin('caller', [script ';']);
Line 25 is the very first line without the % comment designator.
I suppose that this file has a variety of new variables and or matrices that I need to generate.
but I'm completely lost.
I appreciate any help.
Thanks!
0 个评论
采纳的回答
Greg Heath
2015-4-24
There are very simple examples in the command line help and doc documentation
help fitnet % curvefitting and regression
doc fitnet
help patternnet % pattern-recognition and classification
doc patternnet
I have posted many examples in the NEWSGROUP and ANSWERS. For classification, include the search words
greg patternnet
Hope this helps.
Greg
PS Transpose your input and target matrices
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel and Cloud 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!