Thread Subject: support vector machines

Subject: support vector machines

From: rishtah

Date: 8 Sep, 2009 13:38:03

Message: 1 of 4

Hi,
I have been trying to classify indoor and outdoor images using SVM. But I'm kind of stuck in this.After training a set of images which has both indoor and outdoor images with their luminance n chrominance values, I happened to get 3 or 4 support vectors.But I dont kow how to proceed further..How am I supposed to test another set of images using the trained datasets or the obtained support vector values.
Can any1 help me plzz...

Subject: support vector machines

From: Bruno Luong

Date: 8 Sep, 2009 14:06:14

Message: 2 of 4

"rishtah " <rishtah@mathworks.com> wrote in message <h85mnr$4np$1@fred.mathworks.com>...
> Hi,
> I have been trying to classify indoor and outdoor images using SVM. But I'm kind of stuck in this.After training a set of images which has both indoor and outdoor images with their luminance n chrominance values, I happened to get 3 or 4 support vectors.But I dont kow how to proceed further..How am I supposed to test another set of images using the trained datasets or the obtained support vector values.
> Can any1 help me plzz...

What kind of code do you use? Is it linear, soft SVM, non-linear kernel-trick SVM? etc... Probably reading careful the documentation of your code you are using can answer right the way.

Bruno

Subject: support vector machines

From: rishtah

Date: 10 Sep, 2009 06:37:05

Message: 3 of 4

Hi,

I've kind of figured little bit on training and testing data using svm,but still I'm missing something here. Basically,I'm using the linear kernal method. After training the data, I calculated my classperf value etc..But for the images that i tested, how can I know under which class they were classified in svm...is there a way to find out the predicted classes in matlab?? I read the documentation n tried finding on google..but cudnt find anything related to SVM...
thanks...

Subject: support vector machines

From: Bruno Luong

Date: 10 Sep, 2009 07:10:17

Message: 4 of 4

"rishtah " <rishtah@mathworks.com> wrote in message <h8a6qh$i7r$1@fred.mathworks.com>...
> Hi,
>
> I've kind of figured little bit on training and testing data using svm,but still I'm missing something here. Basically,I'm using the linear kernal method. After training the data, I calculated my classperf value etc..But for the images that i tested, how can I know under which class they were classified in svm...is there a way to find out the predicted classes in matlab?? I read the documentation n tried finding on google..but cudnt find anything related to SVM...
> thanks...

the vector w,b is computed as

w = sum_{on all data} lambda*y*x
b = -1/2 { mean_{on_SV suchthat y<0)} w'*x +
               mean_[on_SV_sucththat y>0) w'*x }

lambda is the dual variable returned after the training
SV are support vector
x is your trained data
y is the classification binary {-1,1}

The classification function is sign(w'*x + b)

There are a tone of papers that provide those formula.

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
predicted classes rishtah 10 Sep, 2009 02:39:05
support vector ... rishtah 8 Sep, 2009 09:39:05
support vectors rishtah 8 Sep, 2009 09:39:04
rssFeed for this Thread

Contact us at files@mathworks.com