Thread Subject: svmclassify decision boundary

Subject: svmclassify decision boundary

From: Robert Jacobsen

Date: 9 Jul, 2011 15:20:24

Message: 1 of 2

Hi

I am having some trouble with the decision boundary from the support vector machine. The following example is from the Matlab documentation [1]:

load fisheriris
xdata = meas(51:end,3:4);
group = species(51:end);
svmStruct = svmtrain(xdata,group,'showplot',true);
species = svmclassify(svmStruct,[5 2],'showplot',true)

If you change the point to be classified to something too far away from the training data (e.g. [2 3]) the plot is extended by svmclassify, but the decision boundary is not. Does anybody know a good way of extending the decision boundary to fit the plot?

Thanks,

Robert

[1] http://www.mathworks.com/help/toolbox/bioinfo/ref/svmclassify.html

Subject: svmclassify decision boundary

From: Robert Jacobsen

Date: 27 Jul, 2011 01:03:08

Message: 2 of 2

Just in case someone else is having the same problem: The decision boundary is made with the function svmplotsvs from the biolearning toolbox and the input to this function necessary to (re)plot the decision boundary is part of the structure that you get from svmtrain.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
svmclassify Robert Jacobsen 9 Jul, 2011 11:24:10
rssFeed for this Thread

Contact us at files@mathworks.com