matlab code problem svmtrain

2 Ansichten (letzte 30 Tage)
Sheema Khattak
Sheema Khattak am 22 Aug. 2014
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"

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by