LFD Book Forum  

Go Back   LFD Book Forum > Book Feedback - Learning From Data > Chapter 3 - The Linear Model

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2013, 08:07 PM
Serega Serega is offline
Junior Member
 
Join Date: Jan 2013
Location: Virginia, USA
Posts: 2
Default Feature Transform

I don't understand why feature transform formulas have repeated inputs. For example the formula
(3.13) F_2(x) = (1, x_1, x_2, x_2^2, x_1, x_2, x_2^2)
includes untransformed x_1, x_2 twice. Suppose I find some weight vector w and I have
h(x) = sign \left (  [w_0 w_1 w_2 w_3 w_4 w_5 w_6]  dot  [1, x_1, x_2, x_1^2, x_1, x_2, x_2^2]\right )

I can replace it with
h(x) = sign \left (  [w_0 (w_1 + w_2) (w_3+ w_4) w_5  w_6]  dot  [1, x_1, x_2, x_1^2,  x_2^2]\right )
and get the same result. What do we get by including the same variable twice?

Thanks.
Reply With Quote
  #2  
Old 02-11-2013, 09:47 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,472
Default Re: Feature Transform

Quote:
Originally Posted by Serega View Post
I don't understand why feature transform formulas have repeated inputs. For example the formula
(3.13) F_2(x) = (1, x_1, x_2, x_2^2, x_1, x_2, x_2^2)
includes untransformed x_1, x_2 twice. Suppose I find some weight vector w and I have
h(x) = sign \left (  [w_0 w_1 w_2 w_3 w_4 w_5 w_6]  dot  [1, x_1, x_2, x_1^2, x_1, x_2, x_2^2]\right )

I can replace it with
h(x) = sign \left (  [w_0 (w_1 + w_2) (w_3+ w_4) w_5  w_6]  dot  [1, x_1, x_2, x_1^2,  x_2^2]\right )
and get the same result. What do we get by including the same variable twice?

Thanks.
The last appearance of x_1 and x_2 in the transform formula is actually x_1 x_2 (multiplied) not x_1,x_2 (with a comma).
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #3  
Old 02-12-2013, 04:51 AM
Serega Serega is offline
Junior Member
 
Join Date: Jan 2013
Location: Virginia, USA
Posts: 2
Default Re: Feature Transform

Thanks for clarification. Yes, I see it now.
Reply With Quote
  #4  
Old 05-23-2017, 12:54 PM
diethealthcare diethealthcare is offline
Banned
 
Join Date: Apr 2017
Posts: 14
Smile Re: Feature Transform

Great information
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 11:08 PM.


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