non linear problem of SVM

2 views (last 30 days)
penelitian yeyen
penelitian yeyen on 1 Feb 2013
Commented: Shashank Prasanna on 29 Apr 2014
by using svmtrain and sv classify bellow :
svmStruct = svmtrain(data(train,:),groups(train),'showplot',true);
I can't find the result and I got the answer :
Warning: The display option can only plot 2D training data.
Is there anyone can help me?

Answers (1)

Shashank Prasanna
Shashank Prasanna on 1 Feb 2013
Edited: Shashank Prasanna on 1 Feb 2013
you data is definitely high dimensional (more than 2) and obviously you can't visualize higher dimension data. remove the 'showplot' 'true' or make it 'false'
The warning won't affect the classification.
  2 Comments
ftsst tupamahu
ftsst tupamahu on 29 Apr 2014
previous question... after change the svmStruct = svmtrain(data(train,:),groups(train),'showplot',true); become svmStruct = svmtrain(data(train,:),groups(train),'showplot',false); i can't see figure result from svmStruct...any solution? thanks before :)
Shashank Prasanna
Shashank Prasanna on 29 Apr 2014
showplot should be true if you want to see the visualization. If you get a warning, see my original answer above.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!