LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > The Final

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2012, 08:10 PM
fgpancorbo fgpancorbo is offline
Senior Member
 
Join Date: Jul 2012
Posts: 104
Default Question 11

I have used LIBSVM; the answer that I get is one of a) to d) if I scale it appropriately. However, if I scale it, the margin in the transformed domain is not any more +/-1 at the support vectors. So technically the answer proposed is right (since it separates the points with a maximum margin) but it doesn't satisfy the requirement that the margins be +/- 1 at the support vectors.
Reply With Quote
  #2  
Old 09-16-2012, 09:05 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Question 12

Quote:
Originally Posted by fgpancorbo View Post
I have used LIBSVM; the answer that I get is one of a) to d) if I scale it appropriately. However, if I scale it, the margin in the transformed domain is not any more +/-1 at the support vectors. So technically the answer proposed is right (since it separates the points with a maximum margin) but it doesn't satisfy the requirement that the margins be +/- 1 at the support vectors.
Just to make sure, this is a double-check on the answer as the question asks explicitly for a geometric solution. Right?
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #3  
Old 09-16-2012, 09:16 PM
fgpancorbo fgpancorbo is offline
Senior Member
 
Join Date: Jul 2012
Posts: 104
Default Re: Question 12

Quote:
Originally Posted by yaser View Post
Just to make sure, this is a double-check on the answer as the question asks explicitly for a geometric solution. Right?
Correct. I did it with LIBSVM though . I have verified that the libsvm solution provides margins equal to 1 for the support vectors. By scaling it via a positive constant I get one of the four.

Thanks,

Fernando.
Reply With Quote
  #4  
Old 09-16-2012, 09:40 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Question 12

Quote:
Originally Posted by fgpancorbo View Post
Correct. I did it with LIBSVM though .
LIBSVM is getting popular . Someone even applied it to the puzzle from Lecture 1 if you remember that.

http://book.caltech.edu/bookforum/sh...21&postcount=6
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #5  
Old 09-16-2012, 09:58 PM
fgpancorbo fgpancorbo is offline
Senior Member
 
Join Date: Jul 2012
Posts: 104
Default Re: Question 12

Quote:
Originally Posted by yaser View Post
LIBSVM is getting popular . Someone even applied it to the puzzle from Lecture 1 if you remember that.

http://book.caltech.edu/bookforum/sh...21&postcount=6
I guess that given that we have libsvm, my lazy inside refused to do sit down and write the problem on paper .
Reply With Quote
  #6  
Old 09-17-2012, 09:51 AM
MLearning MLearning is offline
Senior Member
 
Join Date: Jul 2012
Posts: 56
Default Re: Question 12

Quote:
Originally Posted by yaser View Post
Just to make sure, this is a double-check on the answer as the question asks explicitly for a geometric solution. Right?
Geometrically, it is clear to see what the values of the weights and b should be. My results using a geometric approach match the results I get using Octave implemenation of SVM. Of course, libsvm also confirms my results as it always has the final say in matters related to SVM .
Reply With Quote
  #7  
Old 06-10-2013, 06:30 PM
jforbes jforbes is offline
Member
 
Join Date: Apr 2013
Posts: 12
Default Re: Question 12

It seems like the original question was never answered.

Geometrically, one can find a w1, w2, and b which define the separating plane. Clearly you get the same plane if you multiply w1, w2, and b by some constant A. In the SVM formalism A was fixed so that w.z+b=1 at the nearest positive point.

Do we need to
-choose the w1, w2, and b which define the correct plane AND have the correct A, or
-is it sufficient to choose one of the infinitely many w1, w2, and b which define the correct plane without necessarily having the correct normalization A?

It's also possible that the correct answer has the correct normalization and I've made some mistake.
Reply With Quote
  #8  
Old 06-10-2013, 06:50 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Question 12

Quote:
Originally Posted by jforbes View Post
Geometrically, one can find a w1, w2, and b which define the separating plane. Clearly you get the same plane if you multiply w1, w2, and b by some constant A. In the SVM formalism A was fixed so that w.z+b=1 at the nearest positive point.

Do we need to
-choose the w1, w2, and b which define the correct plane AND have the correct A, or
-is it sufficient to choose one of the infinitely many w1, w2, and b which define the correct plane without necessarily having the correct normalization A?
It is the latter, with no normalization needed. Since the wording of the problem asks for what values specify the plane, a set of values that does specify the plane would be the correct answer and if none of them does then it's none of the above.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #9  
Old 06-10-2013, 07:24 PM
jforbes jforbes is offline
Member
 
Join Date: Apr 2013
Posts: 12
Default Re: Question 12

Quote:
Originally Posted by yaser View Post
It is the latter, with no normalization needed. Since the wording of the problem asks for what values specify the plane, a set of values that does specify the plane would be the correct answer and if none of them does then it's none of the above.
Great - looking back I agree that the question wording is unambiguous, though perhaps for this problem the graph of P(getting the right answer) vs Carefulness is non-monotonic. Thank you!
Reply With Quote
  #10  
Old 06-10-2013, 07:35 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Question 12

Quote:
Originally Posted by jforbes View Post
the graph of P(getting the right answer) vs Carefulness is non-monotonic
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
Reply

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 08:11 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, 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.