matlab code problem svmtrain
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!