matlab code problem svmtrain

2 visualizzazioni (ultimi 30 giorni)
Sheema Khattak
Sheema Khattak il 22 Ago 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"

Risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by