Thread Subject: svm classification ---- distance to the classifying hyperplane (surface, curve)

Subject: svm classification ---- distance to the classifying hyperplane (surface, curve)

From: Guodong

Date: 24 Jun, 2009 15:46:02

Message: 1 of 3

Hi,

I having been using matlab svmtrain/svmclassify to classify my two-dimensional data with rbf function in the training process. Currently, svmclassify only outputs the class labels. However, I also would like to know how far the classified data points are from the classifying hyperplane (or curve in the original 2-dim plane in my case) to sort of measure the confidence in classifying each data point. I would appreciate it if anyone know how to make svmclassify out such infos.

Subject: svm classification ---- distance to the classifying hyperplane (surface, curve)

From: Arthur Zheng

Date: 23 Sep, 2009 02:22:02

Message: 2 of 3

"Guodong " <liug@pitt.edu> wrote in message <h1thnq$p62$1@fred.mathworks.com>...
> Hi,
>
> I having been using matlab svmtrain/svmclassify to classify my two-dimensional data with rbf function in the training process. Currently, svmclassify only outputs the class labels. However, I also would like to know how far the classified data points are from the classifying hyperplane (or curve in the original 2-dim plane in my case) to sort of measure the confidence in classifying each data point. I would appreciate it if anyone know how to make svmclassify out such infos.


that's what i am thinking about as well

Subject: svm classification ---- distance to the classifying hyperplane (surface, curve)

From: Bruno Luong

Date: 23 Sep, 2009 06:30:21

Message: 3 of 3

"Arthur Zheng" <hzheng7@gatech.edu> wrote in message <h9c0oa$er7$1@fred.mathworks.com>...
> "Guodong " <liug@pitt.edu> wrote in message <h1thnq$p62$1@fred.mathworks.com>...
> > Hi,
> >
> > I having been using matlab svmtrain/svmclassify to classify my two-dimensional data with rbf function in the training process. Currently, svmclassify only outputs the class labels. However, I also would like to know how far the classified data points are from the classifying hyperplane (or curve in the original 2-dim plane in my case) to sort of measure the confidence in classifying each data point. I would appreciate it if anyone know how to make svmclassify out such infos.
>
>
> that's what i am thinking about as well

The distance of x from the hyperplan (in the *feature* space) - scaled by the margin - is:

d(x) = | sum K(xi,x)*(alphai.*yi) - 0.5*sum K(xi,s)*(alphai.*yi) |

xi is training points; s is (any) support vector
alphai is dual variables
K(.,.) is kernel
x is classify point

Notes
- Matlab classify returns (alphai.*yi) after training.
- The second sum using *one* support vector in the formula can be calculated more accurately by replacing with the mean of the same quantity on *all* support vectors

Bruno

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
hyperplane Bryan Smith 7 Nov, 2010 23:14:34
svm Bryan Smith 7 Nov, 2010 22:49:22
score Meedo 23 Apr, 2010 22:28:18
svm Arthur Zheng 22 Sep, 2009 22:24:07
speaker recogni... Sprinceana 8 Sep, 2009 16:44:17
speech recognition Sprinceana 8 Sep, 2009 16:44:17
svm Sprinceana 8 Sep, 2009 16:44:16
rssFeed for this Thread

Contact us at files@mathworks.com