LFD Book Forum  

Go Back   LFD Book Forum > Book Feedback - Learning From Data > Chapter 4 - Overfitting

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2014, 10:49 AM
cbmachine cbmachine is offline
Junior Member
 
Join Date: Sep 2014
Posts: 3
Default Equation 4.13 calculating y_hat_n

I am a bit confused about calculating the value for y_hat_n. To calculate this value should I calculate w_reg(lamda_N-1) for N-1 data points and then calculate y_hat_n using X(n)*w_reg(lamda_N-1). Or should it be calculated using w_reg(lamda_N) i.e. w_reg calculated over all N points?

Any input will be highly appreciated
Reply With Quote
  #2  
Old 11-05-2014, 07:31 PM
magdon's Avatar
magdon magdon is offline
RPI
 
Join Date: Aug 2009
Location: Troy, NY, USA.
Posts: 595
Default Re: Equation 4.13 calculating y_hat_n

You use w_reg(lamda_N). y_hat_n is your prediction on data point n after learning on all the data.

Quote:
Originally Posted by cbmachine View Post
I am a bit confused about calculating the value for y_hat_n. To calculate this value should I calculate w_reg(lamda_N-1) for N-1 data points and then calculate y_hat_n using X(n)*w_reg(lamda_N-1). Or should it be calculated using w_reg(lamda_N) i.e. w_reg calculated over all N points?

Any input will be highly appreciated
__________________
Have faith in probability
Reply With Quote
  #3  
Old 11-06-2014, 01:51 PM
cbmachine cbmachine is offline
Junior Member
 
Join Date: Sep 2014
Posts: 3
Default Re: Equation 4.13 calculating y_hat_n

Thank you for the reply
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:10 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.