Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How can I train SVM in Matlab, with svmtrain command, but for more then 2 groups??
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eizo  
View profile  
 More options Dec 17 2009, 12:02 pm
Newsgroups: comp.soft-sys.matlab
From: Eizo <odpe...@gmail.com>
Date: Thu, 17 Dec 2009 09:02:31 -0800 (PST)
Local: Thurs, Dec 17 2009 12:02 pm
Subject: How can I train SVM in Matlab, with svmtrain command, but for more then 2 groups??
Hi
I was playing with the option to implement SVM in my  OCR algorithm,
but when checking the SVM that Matlab has to offer I saw that it can
support only 2 groups training and classification ?
Am I am missing something ?

I was using the svmtrain command, and tried to train it for 3 groups
(e.g. three characters.) and I got the error saying that svm train
support only two groups...

Am I am missing something in the SVM implementation ? or it is really
that Matlab support only two groups, and when you want to implement
something bigger then that, like ocr for 10 characters (e.g.  10
groups) , matlab doesn't support that (at least in it's ready made
tool box).

Thanks
O


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "How can I train SVM in Matlab, with svmtrain command, but for more" by Bruno Luong
Bruno Luong  
View profile  
 More options Dec 17 2009, 2:03 pm
Newsgroups: comp.soft-sys.matlab
From: "Bruno Luong" <b.lu...@fogale.findmycountry>
Date: Thu, 17 Dec 2009 19:03:08 +0000 (UTC)
Local: Thurs, Dec 17 2009 2:03 pm
Subject: Re: How can I train SVM in Matlab, with svmtrain command, but for more

Eizo <odpe...@gmail.com> wrote in message <4a19b764-d8e6-40a2-b399-c2d6167f2...@d10g2000yqh.googlegroups.com>...
> Am I am missing something ?

SVM is a two-class supervised learning technique, and Matlab does just that. For multi-classes you might want to apply successively 2-classes learning processes. See relevant papers for how to use correct strategy ("winner takes all" is the most popular).

There are several generalization of SVM allowing multiclasse classification, but I don't think Matlab has any of those technique.

Bruno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pekka Kumpulainen  
View profile  
 More options Dec 17 2009, 2:20 pm
Newsgroups: comp.soft-sys.matlab
From: "Pekka Kumpulainen" <pekka.nospam.kumpulai...@tut.please.fi>
Date: Thu, 17 Dec 2009 19:20:08 +0000 (UTC)
Local: Thurs, Dec 17 2009 2:20 pm
Subject: Re: How can I train SVM in Matlab, with svmtrain command, but for more

"Bruno Luong" <b.lu...@fogale.findmycountry> wrote in message <hgdv9c$o9...@fred.mathworks.com>...
> Eizo <odpe...@gmail.com> wrote in message <4a19b764-d8e6-40a2-b399-c2d6167f2...@d10g2000yqh.googlegroups.com>...

> > Am I am missing something ?

> SVM is a two-class supervised learning technique, and Matlab does just that. For multi-classes you might want to apply successively 2-classes learning processes. See relevant papers for how to use correct strategy ("winner takes all" is the most popular).

> There are several generalization of SVM allowing multiclasse classification, but I don't think Matlab has any of those technique.

> Bruno

At least the SVM in the Bioinformatics toolbox does only two-class classification.
There are other tools available. LIBSVM for example supports multi-class and has MATLAB interface
http://www.csie.ntu.edu.tw/~cjlin/libsvm/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eizo  
View profile  
 More options Dec 18 2009, 4:13 am
Newsgroups: comp.soft-sys.matlab
From: Eizo <odpe...@gmail.com>
Date: Fri, 18 Dec 2009 01:13:54 -0800 (PST)
Local: Fri, Dec 18 2009 4:13 am
Subject: Re: How can I train SVM in Matlab, with svmtrain command, but for more
On Dec 17, 9:03 pm, "Bruno Luong" <b.lu...@fogale.findmycountry>
wrote:

> Eizo <odpe...@gmail.com> wrote in message <4a19b764-d8e6-40a2-b399-c2d6167f2...@d10g2000yqh.googlegroups.com>...
> > Am I am missing something ?

> SVM is a two-class supervised learning technique, and Matlab does just that. For multi-classes you might want to apply successively 2-classes learning processes. See relevant papers for how to use correct strategy ("winner takes all" is the most popular).

> There are several generalization of SVM allowing multiclasse classification, but I don't think Matlab has any of those technique.

> Bruno

Then how people use SVM for face recognition or OCR, if it is just 2
class learning technique?
(They use the multi class trick ? )

op


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eizo  
View profile  
 More options Dec 18 2009, 12:56 pm
Newsgroups: comp.soft-sys.matlab
From: Eizo <odpe...@gmail.com>
Date: Fri, 18 Dec 2009 09:56:08 -0800 (PST)
Local: Fri, Dec 18 2009 12:56 pm
Subject: Re: How can I train SVM in Matlab, with svmtrain command, but for more
On Dec 17, 9:03 pm, "Bruno Luong" <b.lu...@fogale.findmycountry>
wrote:

> Eizo <odpe...@gmail.com> wrote in message <4a19b764-d8e6-40a2-b399-c2d6167f2...@d10g2000yqh.googlegroups.com>...
> > Am I am missing something ?

> SVM is a two-class supervised learning technique, and Matlab does just that. For multi-classes you might want to apply successively 2-classes learning processes. See relevant papers for how to use correct strategy ("winner takes all" is the most popular).

> There are several generalization of SVM allowing multiclasse classification, but I don't think Matlab has any of those technique.

> Bruno

Where can I read on the Multi-class methods? ..  maybe you know on
some  links to some tutorials on that matter ?
All the papers and presentation I read deal only with 2 classes..

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ilya Narsky  
View profile  
 More options Dec 18 2009, 1:35 pm
Newsgroups: comp.soft-sys.matlab
From: "Ilya Narsky" <inar...@mathworks.com>
Date: Fri, 18 Dec 2009 13:35:16 -0500
Local: Fri, Dec 18 2009 1:35 pm
Subject: Re: How can I train SVM in Matlab, with svmtrain command, but for more

"Eizo" <odpe...@gmail.com> wrote in message

news:dd4af2f0-f645-4576-8713-d3fe746d613b@l13g2000yqb.googlegroups.com...
On Dec 17, 9:03 pm, "Bruno Luong" <b.lu...@fogale.findmycountry>
wrote:

> Eizo <odpe...@gmail.com> wrote in message
> <4a19b764-d8e6-40a2-b399-c2d6167f2...@d10g2000yqh.googlegroups.com>...
> > Am I am missing something ?

> SVM is a two-class supervised learning technique, and Matlab does just
> that. For multi-classes you might want to apply successively 2-classes
> learning processes. See relevant papers for how to use correct strategy
> ("winner takes all" is the most popular).

> There are several generalization of SVM allowing multiclasse
> classification, but I don't think Matlab has any of those technique.

> Bruno

Where can I read on the Multi-class methods? ..  maybe you know on
some  links to some tutorials on that matter ?
All the papers and presentation I read deal only with 2 classes..

Allwein, Schapire and Singer "Reducing multiclass to binary: a unifying
approach for margin classifiers", J. of Machine Learning Research 1 (2000)
113-141

Kuncheva "Using diversity measures for generating error-correcting output
codes in classifier ensembles", Pattern Recognition Letters 26 (2005) 83-90;
also references therein

Tibshirani and Hastie "Margin trees for high-dimensional classification",
available from http://www-stat.stanford.edu/~hastie/

For SVM:

Lee, Lin and Wahba "Multicategory support vector machines: theory and
application to the classification of microarray data and satellite radiance
data", J. of ASA 99 (2004)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Luong  
View profile  
 More options Dec 18 2009, 2:01 pm
Newsgroups: comp.soft-sys.matlab
From: "Bruno Luong" <b.lu...@fogale.findmycountry>
Date: Fri, 18 Dec 2009 19:01:24 +0000 (UTC)
Local: Fri, Dec 18 2009 2:01 pm
Subject: Re: How can I train SVM in Matlab, with svmtrain command, but for more
- Analysis of Multiclass Support Vector Machines, Shigeo Abe

- Winner takes all -> B. Schölkopf, C. Burges, and V. Vapnik. Extracting support data for a given task. In KDD'95, 1995.  

- One againsts one -> S. Knerr, L. Personnaz, and G. Dreyfus. Single-layer learning revisited : A stepwise procedure for building and training a neural network. In F. Fogelman-Soulié and J. Hérault, editors, Neurocomputing: Algorithms, Architectures and Applications, volume F68 of NATO ASI Series, pages 41-50. Springer-Verlag, 1990.

- Decision graph: J.C. Platt, N. Cristianini, and J. Shawe-Taylor. Large margin DAGs for multiclass classi cation. In NIPS 12, pages 547-553, 2000.

Bruno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eizo  
View profile  
 More options Dec 26 2009, 11:27 am
Newsgroups: comp.soft-sys.matlab
From: Eizo <odpe...@gmail.com>
Date: Sat, 26 Dec 2009 08:27:47 -0800 (PST)
Local: Sat, Dec 26 2009 11:27 am
Subject: Re: How can I train SVM in Matlab, with svmtrain command, but for more
On Dec 18, 9:01 pm, "Bruno Luong" <b.lu...@fogale.findmycountry>
wrote:

> - Analysis of Multiclass Support Vector Machines, Shigeo Abe

> - Winner takes all -> B. Schölkopf, C. Burges, and V. Vapnik. Extracting support data for a given task. In KDD'95, 1995.  

> - One againsts one -> S. Knerr, L. Personnaz, and G. Dreyfus. Single-layer learning revisited : A stepwise procedure for building and training a neural network. In F. Fogelman-Soulié and J. Hérault, editors, Neurocomputing: Algorithms, Architectures and Applications, volume F68 of NATO ASI Series, pages 41-50. Springer-Verlag, 1990.

> - Decision graph: J.C. Platt, N. Cristianini, and J. Shawe-Taylor. Large margin DAGs for multiclass classi cation. In NIPS 12, pages 547-553, 2000.

> Bruno

While exploring the net for some Matlab code that can do multiclass
SVM. I was wondering, is it possible to train the SVM with a character
(e.g one vector that contain binary letter information, with 1's and
0's) like in the neural net training ?

Because all the demos, and all the articles I read deal with 2 dim
info.
While it is possible to find some features that describe  letters in
the 2 dim space, I was looking to speed things up, by entering the
letter as is in its raw binary info (like neural net).

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »