LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2013, 06:52 AM
samihaq samihaq is offline
Member
 
Join Date: May 2012
Posts: 15
Default Hm 4,q#7

I have two basic questions regarding Q#7

1. How to use 1-step learning for linear regression uses the term Ax + b = y,(b as a constant) as i think in the original form (w = pseudo_inv(X) * y ) it is used for Ax = y. We can take b on other side and subtract from y but then what values of b constant to use.

2. Secondly when we have h(x) = b as hypothesis set then as it is just a constant and there are no parameters, so we cant use any learning algorithm then does it mean that we just to try a range of values for b ?

Thank you very much
Reply With Quote
  #2  
Old 07-08-2013, 08:50 AM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,475
Default Re: Hm 4,q#7

Quote:
Originally Posted by samihaq View Post
1. How to use 1-step learning for linear regression uses the term Ax + b = y,(b as a constant) as i think in the original form (w = pseudo_inv(X) * y ) it is used for Ax = y. We can take b on other side and subtract from y but then what values of b constant to use.
The constant b can be treated as a coefficient of x_0 (which is the constant 1).

Quote:
2. Secondly when we have h(x) = b as hypothesis set then as it is just a constant and there are no parameters, so we cant use any learning algorithm then does it mean that we just to try a range of values for b ?
It is a constant in the sense that the value of the hypothesis does not change for different values of x, but the value of the constant itself can change from one hypothesis to another, so b should be treated as a parameter.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #3  
Old 07-08-2013, 10:02 AM
samihaq samihaq is offline
Member
 
Join Date: May 2012
Posts: 15
Default Re: Hm 4,q#7

Thank you very much Professor.
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 12:00 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.