I'm unable to pass though I passed all test cases

When creating a post, please add:

  • Week 1 Gradient Checking

{moderator edit - solution code removed}

  • The expected outcome is slightly different from the actual outcome in the last function. I tried all my best since a month and unable to figure out what’s the problem. Can you please help me ?

You have a mistake in the code that calculates theta_minus. It is a classic “copy/paste” error in which you copied the code from theta_plus case, but did not change everything that needed to be changed to adapt that code for the new case.

1 Like