LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2013, 11:52 AM
ripande ripande is offline
Senior Member
 
Join Date: Jan 2013
Posts: 71
Default Target function formulation in Q8

I guess this is pretty basic, but I am unclear on this, so would like some help. As per requiremets of question 8

f(x) = 1 for Y=+1
f(x) = 0 for Y = -1

Is my understanding correct ?

if yes, f(x) should be the step function of y*x. I am unable to formulate this in a form such that it is differentiable to use SGD. Can someone help me understand how to do it?

Thanks
Reply With Quote
  #2  
Old 02-09-2013, 12:01 PM
ripande ripande is offline
Senior Member
 
Join Date: Jan 2013
Posts: 71
Default Re: Target function formulation in Q8

Or do we just use formula to minimize mean square error

sum ( sq(y1 - wx1) + sq(y2 - wx2) ...) ?
Reply With Quote
  #3  
Old 02-09-2013, 01:47 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,478
Default Re: Target function formulation in Q8

Quote:
Originally Posted by ripande View Post
I guess this is pretty basic, but I am unclear on this, so would like some help. As per requiremets of question 8

f(x) = 1 for Y=+1
f(x) = 0 for Y = -1

Is my understanding correct ?

if yes, f(x) should be the step function of y*x. I am unable to formulate this in a form such that it is differentiable to use SGD. Can someone help me understand how to do it?
The target function in this case is indeed "hard threshold," but the hypotheses are "soft threshold" (they only approximate the target) and these are the ones that have the required smoothness properties for SGD. The goal of miniizing the cross entropy error measure is to get a hypothesis that approximately replicates f, based on the noisy examples.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #4  
Old 02-09-2013, 02:23 PM
ripande ripande is offline
Senior Member
 
Join Date: Jan 2013
Posts: 71
Default Re: Target function formulation in Q8

Understood. Thanks Prof Yaser. So in this case we can use the theta(s) as the sigmoid function as explained in the lecture, correct?
Reply With Quote
  #5  
Old 02-09-2013, 07:46 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,478
Default Re: Target function formulation in Q8

Quote:
Originally Posted by ripande View Post
Understood. Thanks Prof Yaser. So in this case we can use the theta(s) as the sigmoid function as explained in the lecture, correct?
Correct.
__________________
Where everyone thinks alike, no one thinks very much
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:41 PM.


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