View Single Post
  #3  
Old 10-18-2015, 08:10 PM
sandeeps sandeeps is offline
Junior Member
 
Join Date: Sep 2015
Posts: 5
Default Re: Linear Regression Classification HW2 Q5/6

I get average E_in as ~ 0.13, however the answer is shown as [Answer edited out by admin].
What I have done:
  • Generated a random line (target function)
  • Generated 100 random points; xn
  • Computed yn using target function
  • Computed w using the linear regression equation
  • Computed Ein = mean(h(x) != yn) i.e. number of values incorrectly estimated by w
  • Repeated the above steps 1000 times and averaged Ein

What have I done wrong?
Reply With Quote