View Single Post
  #3  
Old 04-14-2013, 01:04 PM
jtsengcr jtsengcr is offline
Junior Member
 
Join Date: Apr 2013
Posts: 3
Unhappy Re: Hard to understand what is wanted in HW2, Q6

Are you sure? My thought for question 5 and 6 was:

1. Generate target function f(x1, x2) only once.
2. Generate a large data set D (x1, x2, y) where y = f(x1, x2).

loop 1000 times
1. Take 100 points from D in space limited for training.
2. Linear regression using the 100 training points for g(x1, x2).
3. Evaluate whether g(x1, x2) = y for the 100 training points, get Ein.
4. Take 1000 points from D in space reserved for testing.
5. Evaluate whether g(x1, x2) = y for the 1000 testing points, get Eout.

Average Ein.
Average Eout.

I did not get the right answer, so, please correct my logic.
Reply With Quote