LFD Book Forum  

Go Back   LFD Book Forum > Book Feedback - Learning From Data > Chapter 5 - Three Learning Principles

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2013, 02:10 PM
ddas2 ddas2 is offline
Junior Member
 
Join Date: Oct 2013
Posts: 3
Default Ecv versus Eout versus Etest

I computed E_cv for part (d) in HW9. I compared the theoretical and estimated results and verfied they are same for all values of lambda. However, when I plot E_test(w_reg(lambda)) vs lambda against E_cv vs lambda, I observe E_test to be always larger than E_cv. I think it should not be the case because E_test is approximately E_out and E_out should be always less than E_cv.
I was wondering if I am making a mistake somewhere. I checked code etc. but cannot think of anyway to do some type of sanity check anywhere. Is there any way to know where the problem might be?
Reply With Quote
  #2  
Old 11-06-2013, 01:21 PM
magdon's Avatar
magdon magdon is offline
RPI
 
Join Date: Aug 2009
Location: Troy, NY, USA.
Posts: 592
Default Re: Ecv versus Eout versus Etest

Ecv is an estimate for Eout based on N-1 points. So you expect Eout<Ecv because Eout is based on learning from N points. However, Etest is just an estimate for Eout and can be higher or lower, though unbiased.

Also note that if there is data snooping, that is if the test set in [i]any[i] way affected the learning process that produces g, then Etest can, and usually will, be affected.

Quote:
Originally Posted by ddas2 View Post
I computed E_cv for part (d) in HW9. I compared the theoretical and estimated results and verfied they are same for all values of lambda. However, when I plot E_test(w_reg(lambda)) vs lambda against E_cv vs lambda, I observe E_test to be always larger than E_cv. I think it should not be the case because E_test is approximately E_out and E_out should be always less than E_cv.
I was wondering if I am making a mistake somewhere. I checked code etc. but cannot think of anyway to do some type of sanity check anywhere. Is there any way to know where the problem might be?
__________________
Have faith in probability
Reply With Quote
  #3  
Old 11-06-2013, 08:54 PM
alanericy alanericy is offline
Junior Member
 
Join Date: Oct 2013
Posts: 5
Default Re: Ecv versus Eout versus Etest

Hi Professor, for the 7th problem in HW9 the Ecv and Etest are classification error or regression error? Thanks!
Reply With Quote
  #4  
Old 11-17-2013, 11:55 AM
magdon's Avatar
magdon magdon is offline
RPI
 
Join Date: Aug 2009
Location: Troy, NY, USA.
Posts: 592
Default Re: Ecv versus Eout versus Etest

The digits problem is about classification, so all errors are classification errors.

However, one can us different algorithms to get your final classifier, one being the regression algorithm treating the y_n=\pm 1 as real values not binary classification values. The algorithm you use to get your final classifier is up to you, but the final result has to be a classifier.

Quote:
Originally Posted by alanericy View Post
Hi Professor, for the 7th problem in HW9 the Ecv and Etest are classification error or regression error? Thanks!
__________________
Have faith in probability
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:52 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.