matlab code problem svmtrain
1 view (last 30 days)
Show older comments
svmtrain(features,label) Error using | Matrix dimensions must agree.
Error in svmtrain (line 265) nans = any(isnan(training)|isnan(groupIndex),2);
also I get Y can be a categorical or character array, logical or numeric vector, or cell array of strings is mentioned how can I build it to be ready to fit in svmtrin. my x is 6*12 and y=[1;1;1;-1;-1;-1]; for which I get error.It also has mentioned that Y — Array of class labels with each row corresponding to the value of the corresponding row in X. Y can be a character array, categorical, logical or numeric vector, or vector cell array of strings. Column vector with each row corresponding to the value of the corresponding row in X. How can I build Y be a "character array, categorical, logical or numeric vector, or vector cell array of strings"
0 Comments
Answers (0)
See Also
Categories
Find more on Get Started with Statistics and Machine Learning Toolbox 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!