error in svm train

1 view (last 30 days)
zara mansoor
zara mansoor on 2 Apr 2016
Commented: zara mansoor on 2 Apr 2016
Error using svmtrain (line 267) TRAINING and Y must both contain at least one row with no missing values.
Error in signaltrain (line 213) SVMSTRUCT = svmtrain(Fsig, label1);
  7 Comments
Walter Roberson
Walter Roberson on 2 Apr 2016
You might run into problems if your label1 has any 0 values, unless label1 is type "logical". If you have some entries whose group is undefined then you should use label1 NaN for them -- but you will need to have at least one row whose group is not NaN.
zara mansoor
zara mansoor on 2 Apr 2016
Thanks Walter I got it.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!