LFD Book Forum Confused on question 6.
 User Name Remember Me? Password
 Register FAQ Calendar Mark Forums Read

 Thread Tools Display Modes
#1
10-07-2012, 01:09 PM
 ArikB Junior Member Join Date: Oct 2012 Posts: 8
Confused on question 6.

Edit: Solved it, the story below is no longer relevant.

I'm confused about how one is supposed to calculate the score exactly. My biggest confusion seems to stem from the misunderstanding of what a 'point' is. Is a point one of the input vectors? so 101, 110 and 111 are 3 points?

So then g[a], returns 1 for all three points would mean that:

Code:
```101 | 1
110 | 1
111 | 1```
And g[b], returns all 0's:

Code:
```101 | 0
110 | 0
111 | 0```
And g[c], the xor function, would return:

Code:
```101 | 0
110 | 0
111 | 1```
and g(d), inverse of g(c), would return:

Code:
```101 | 1
110 | 1
111 | 0```
Or could it be that g[1] means that it will only return a 1 if all points are 1? So:

Code:
```101 | 0
110 | 0
111 | 1```
and g[b] would have a score of 0, because there are no 000 points.

I'm utterly confused by the question. :/
#2
10-07-2012, 03:02 PM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,478
Re: Confused on question 6.

Quote:
 Originally Posted by ArikB I'm confused about how one is supposed to calculate the score exactly. My biggest confusion seems to stem from the misunderstanding of what a 'point' is. Is a point one of the input vectors? so 101, 110 and 111 are 3 points?
A point is a data point, so these are 3 points. For each possible target function, there is a number of agreements (0,1,2 or3) with your hypothesis on these 3 points. We are keeping a tally of the number of agreements as we go through all possible target functions.
__________________
Where everyone thinks alike, no one thinks very much
#3
10-07-2012, 03:03 PM
 ArikB Junior Member Join Date: Oct 2012 Posts: 8
Re: Confused on question 6.

Quote:
 Originally Posted by yaser A point is a data point, so these are 3 points. For each possible target function, there is a number of agreements (0,1,2 or3) with your hypothesis on these 3 points. We are keeping a tally of the number of agreements as we go through all possible target functions.

Thank you for the response, I was approaching the question completely wrong but solved it in the meantime.
#4
10-07-2012, 03:09 PM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,478
Re: Confused on question 6.

Quote:
 Originally Posted by ArikB Thank you for the response, I was approaching the question completely wrong but solved it in the meantime.
You are welcome. Everyone is encouraged to ask questions, big or small.
__________________
Where everyone thinks alike, no one thinks very much
#5
10-08-2012, 09:46 AM
 noahdavis Member Join Date: Oct 2012 Posts: 10
Re: Confused on question 6.

Quote:
 Originally Posted by yaser A point is a data point, so these are 3 points. For each possible target function, there is a number of agreements (0,1,2 or3) with your hypothesis on these 3 points. We are keeping a tally of the number of agreements as we go through all possible target functions.
Sorry I'm struggling a bit understanding the framework here. Maybe it's just terminology. What is the difference between a "possible target function" and a "hypothesis" ? I thought that they were equivalent, but it does not seem to be the case - a hypothesis must agree with a target function.
#6
10-08-2012, 11:31 AM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,478
Re: Confused on question 6.

Quote:
 Originally Posted by noahdavis Sorry I'm struggling a bit understanding the framework here. Maybe it's just terminology. What is the difference between a "possible target function" and a "hypothesis" ? I thought that they were equivalent, but it does not seem to be the case - a hypothesis must agree with a target function.
Possible target function is a notion introduced in this problem in order to make a point about learning. In general, there is one target function, albeit unknown. Here we spell out "unkown" by considering all the possibilities the target function can assume. We can afford to do that here because there is only a finite number of possibilities.

Hypotheses are the products of learning that try to approximate the target function. In this problem, we prescribe different learning scenarios that result in different hypotheses, then attempt to grade these hypotheses. We grade them according to how well each of them approximates the target function. The twist is that we consider all possible target functions and grade the hypothesis according to how well it approximates each of these possible targets.
__________________
Where everyone thinks alike, no one thinks very much
#7
10-08-2012, 03:52 PM
 noahdavis Member Join Date: Oct 2012 Posts: 10
Re: Confused on question 6.

Thank you - I understand now. For some reason it took me a leap to figure out how to build the "target function" such that it could be measured as stated in the problem. Originally, I had a list of 8 "functions" - but each function was just simply one of the 8 permutations where a permutation was an input point and a possible output.
#8
01-10-2013, 10:23 AM
 kumarpiyush Junior Member Join Date: Jan 2013 Posts: 7
Re: Confused on question 6.

Quote:
 Originally Posted by noahdavis Thank you - I understand now. For some reason it took me a leap to figure out how to build the "target function" such that it could be measured as stated in the problem. Originally, I had a list of 8 "functions" - but each function was just simply one of the 8 permutations where a permutation was an input point and a possible output.
Does this mean the combinations of (000) ,(001) upto (111) are the 8 target functions?
#9
01-10-2013, 10:25 AM
 kumarpiyush Junior Member Join Date: Jan 2013 Posts: 7
Re: Confused on question 6.

Quote:
 Originally Posted by yaser Possible target function is a notion introduced in this problem in order to make a point about learning. In general, there is one target function, albeit unknown. Here we spell out "unkown" by considering all the possibilities the target function can assume. We can afford to do that here because there is only a finite number of possibilities. Hypotheses are the products of learning that try to approximate the target function. In this problem, we prescribe different learning scenarios that result in different hypotheses, then attempt to grade these hypotheses. We grade them according to how well each of them approximates the target function. The twist is that we consider all possible target functions and grade the hypothesis according to how well it approximates each of these possible targets.
I understood it now :-)
#10
01-10-2013, 03:31 PM
 lhamilton Junior Member Join Date: Jan 2013 Posts: 2
Re: Confused on question 6.

I still don't think I'm interpreting this question correctly.

For 6(d), the function described does not match the data set D.

So, given that, am I correct in thinking that for hypothesis 6(d) there are zero target functions that match the hypothesis?

Because, by definition, a target function must agree with the given data set D. Right?

 Thread Tools Display Modes Hybrid Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home General     General Discussion of Machine Learning     Free Additional Material         Dynamic e-Chapters         Dynamic e-Appendices Course Discussions     Online LFD course         General comments on the course         Homework 1         Homework 2         Homework 3         Homework 4         Homework 5         Homework 6         Homework 7         Homework 8         The Final         Create New Homework Problems Book Feedback - Learning From Data     General comments on the book     Chapter 1 - The Learning Problem     Chapter 2 - Training versus Testing     Chapter 3 - The Linear Model     Chapter 4 - Overfitting     Chapter 5 - Three Learning Principles     e-Chapter 6 - Similarity Based Methods     e-Chapter 7 - Neural Networks     e-Chapter 8 - Support Vector Machines     e-Chapter 9 - Learning Aides     Appendix and Notation     e-Appendices

All times are GMT -7. The time now is 12:49 AM.

 Contact Us - LFD Book - Top