LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 8

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2012, 12:01 AM
Andrs Andrs is offline
Member
 
Join Date: Jul 2012
Posts: 47
Default meaning of gamma in polynomial kernel

In libsvm the polynomial kernel is defined in the following way:
(gamma*u'*v + coef0)^degree).
What is the meaning of gamma in the poly kernel? In our exercise the polynomial kernel only contains the parameters coef0 and degree (and C). There is no reference to a gamma parameter.
I have guessed the value 1 to gamma (no effect when multiplying the inner product) but I am not sure because its purpose is not clear for me in the poly case.
If we do not assign any values, the default value given by libsvm is 1/# features. In our case,it will be 1/2.
Any clarifications about this gamma in poly is appreciated
Reply With Quote
  #2  
Old 09-02-2012, 12:23 AM
tzs29970 tzs29970 is offline
Invited Guest
 
Join Date: Apr 2012
Posts: 52
Default Re: meaning of gamma in polynomial kernel

See slide 6 of lecture 15, and the discussion starting about 21 minutes into the lecture.
Reply With Quote
  #3  
Old 09-02-2012, 12:27 AM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: meaning of gamma in polynomial kernel

Quote:
Originally Posted by Andrs View Post
In libsvm the polynomial kernel is defined in the following way:
(gamma*u'*v + coef0)^degree).
What is the meaning of gamma in the poly kernel? In our exercise the polynomial kernel only contains the parameters coef0 and degree (and C). There is no reference to a gamma parameter.
I have guessed the value 1 to gamma (no effect when multiplying the inner product) but I am not sure because its purpose is not clear for me in the poly case.
If we do not assign any values, the default value given by libsvm is 1/# features. In our case,it will be 1/2.
Any clarifications about this gamma in poly is appreciated
As mentioned on slide 6 of Lecture 15, sometimes the polynomial kernel is defined with constants inside the expression that balance the relative value of the coefficients in the equivalent transformation. The slide uses different notation from that of libsvm. For our purposes, these constants are set to 1 (both gamma and coeff0 in the notation you mention).

Edit: I wrote this before I saw the above reply.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #4  
Old 09-02-2012, 12:34 AM
Andrs Andrs is offline
Member
 
Join Date: Jul 2012
Posts: 47
Default Re: meaning of gamma in polynomial kernel

Thanks for the quick reply!..may be i should have been more alert
Reply With Quote
  #5  
Old 09-02-2012, 05:24 AM
htlin's Avatar
htlin htlin is offline
NTU
 
Join Date: Aug 2009
Location: Taipei, Taiwan
Posts: 601
Default Re: meaning of gamma in polynomial kernel

A simple way to view \gamma is that it is as if you have scaled all your \mathbf{x} down by \sqrt{\gamma} before applying the no-\gamma polynomial kernel. Hope this helps.
__________________
When one teaches, two learn.
Reply With Quote
  #6  
Old 09-03-2012, 02:04 AM
Andrs Andrs is offline
Member
 
Join Date: Jul 2012
Posts: 47
Default Re: meaning of gamma in polynomial kernel

Quote:
Originally Posted by htlin View Post
A simple way to view \gamma is that it is as if you have scaled all your \mathbf{x} down by \sqrt{\gamma} before applying the no-\gamma polynomial kernel. Hope this helps.
Thanks for the explanation!
Reply With Quote
Reply

Tags
libsvm, polynomial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:04 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.