Thread Subject: svmtrain 'how it work'

Subject: svmtrain 'how it work'

From: amira ali

Date: 13 Dec, 2011 03:57:08

Message: 1 of 4

hello
 i want to know how can i use SVMtrain and SVMclassify as i have created bag of words "codebook" and create histogram for trained data then i want to use SVMtrain but i don't know how to use as groups refer to ? and data refer also to?
svmStruct = svmtrain(data(train,:),groups(train),'showplot',true);
classes = svmclassify(svmStruct,data(test,:),'showplot',true);


thanks

Subject: svmtrain 'how it work'

From: amira ali

Date: 13 Dec, 2011 06:23:08

Message: 2 of 4

"amira ali" wrote in message <jc6iek$1rc$1@newscl01ah.mathworks.com>...
> hello
> i want to know how can i use SVMtrain and SVMclassify as i have created bag of words "codebook" and create histogram for trained data then i want to use SVMtrain but i don't know how to use as groups refer to ? and data refer also to?
> svmStruct = svmtrain(data(train,:),groups(train),'showplot',true);
> classes = svmclassify(svmStruct,data(test,:),'showplot',true);
>
>
> thanks

histogram
1 histogram for first action
2 histogram for second action
3 histogram for third action
4 histogram for fourth action
5 histogram for fifth action

how can i use that as input to SVMtrain


help plz

Subject: svmtrain 'how it work'

From: Steven_Lord

Date: 13 Dec, 2011 15:03:25

Message: 3 of 4



"amira ali" <amiraali2005@gmail.com> wrote in message
news:jc6iek$1rc$1@newscl01ah.mathworks.com...
> hello
> i want to know how can i use SVMtrain and SVMclassify as i have created
> bag of words "codebook" and create histogram for trained data then i want
> to use SVMtrain but i don't know how to use as groups refer to ? and data
> refer also to?
> svmStruct = svmtrain(data(train,:),groups(train),'showplot',true);
> classes = svmclassify(svmStruct,data(test,:),'showplot',true);

Take a look at the definitions of the groups input to SVMTRAIN in its
documentation:

http://www.mathworks.com/help/toolbox/bioinfo/ref/svmtrain.html

the definition of the sample input to SVMCLASSIFY in its documentation:

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

and the general documentation on support vector machines.

http://www.mathworks.com/help/toolbox/bioinfo/ug/bs3tbev-1.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: svmtrain 'how it work'

From: Anna

Date: 23 Feb, 2012 12:57:17

Message: 4 of 4

"amira ali" wrote in message <jc6iek$1rc$1@newscl01ah.mathworks.com>...
> hello
> i want to know how can i use SVMtrain and SVMclassify as i have created bag of words "codebook" and create histogram for trained data then i want to use SVMtrain but i don't know how to use as groups refer to ? and data refer also to?
> svmStruct = svmtrain(data(train,:),groups(train),'showplot',true);
> classes = svmclassify(svmStruct,data(test,:),'showplot',true);
>
>
> thanks

Have you managed to overcome this problem, as I have it now also, and maybe you could help me? thanks!

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com