Quote:
Originally Posted by catherine
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.