Thread: *ANSWER* q8/9
View Single Post
  #10  
Old 05-08-2013, 01:42 PM
apbarraza apbarraza is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
Default Re: * answer * q8/9

Quote:
Originally Posted by catherine View Post
Hi apbarraza, the problem seems to be with the way you compute the magnitude of the difference between the weight vector at the beginning and at the end of each epoch. Use norm (with p = "fro") instead of abs. Also Eout1 is the way to go. Good luck!

YES !! Thank you sooo much I have been bagging my head and I canīt believe I missed this. Changed while to:

Code:
while ((norm(theta-theta_last, "fro")>0.01))
And now am getting average N = 342 and Eout1 = 0.1 which is the expected answer.

Thank you.
Reply With Quote