LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2012, 04:21 AM
patrickjtierney patrickjtierney is offline
Member
 
Join Date: Jul 2012
Location: Toronto, Canada
Posts: 33
Default Q7 No feature transform but do we add an x_0

Title says it all. Do we still add the column of 1's to X so that that the weight vector is of length 3, or not?
Reply With Quote
  #2  
Old 09-14-2012, 05:20 AM
patrickjtierney patrickjtierney is offline
Member
 
Join Date: Jul 2012
Location: Toronto, Canada
Posts: 33
Default Re: Q7 No feature transform but do we add an x_0

I tried it both ways, and strangely enough, it turns out that the number of wrongly classified inputs in each case is exactly equal whether you use the X0=1 term or not, even though the weights change quite a lot. I wasn't expecting that.
Reply With Quote
  #3  
Old 09-14-2012, 06:20 AM
Andrs Andrs is offline
Member
 
Join Date: Jul 2012
Posts: 47
Default Re: Q7 No feature transform but do we add an x_0

Q7 is about plain linear regression and you should have a w0 parameter that corresponds to the constant bias.
Reply With Quote
  #4  
Old 09-14-2012, 08:55 AM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Q7 No feature transform but do we add an x_0

Quote:
Originally Posted by Andrs View Post
Q7 is about plain linear regression and you should have a w0 parameter that corresponds to the constant bias.
Correct.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
Reply

Tags
final_q7

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:04 PM.


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.