{moderator edit - solution code removed}
Listed above is the code with regards to the error. Can someone point me in the right direction? The error i keep receiving is that it is not 1 of the expected output. Thanks!
{moderator edit - solution code removed}
Listed above is the code with regards to the error. Can someone point me in the right direction? The error i keep receiving is that it is not 1 of the expected output. Thanks!
Take another look at the instructions and your computation of the numerator and denominator. grad and gradapprox are vectors, right? You’re supposed to be working with the whole vectors there, not just the i-th elements of them.
OH I see. Thank you for your help!