Am having issue with week 4

When creating a post, please add:

  • Week4 # must be added in the tags option of the post.
  • Programming Assignment: Deep Neural Network - Application
  • Description (include relevant info but please do not post solution code or your entire notebook) error submission and i was not graded

A not very informative post. :thinking:

Please show us the grader feedback that you are getting, with “Show Grader Output” clicked.

The other question is whether you are sure that all the tests in the notebook have passed. There is no real point in submitting to the grader until you’ve passed all the “unit tests” in the notebook.

how are you ?

Thanks for your attention sir please firstly i noticed am not seeing “all test passed” after following the necessary instructions probably i would like to be guided if am missing something out as well @paulinpaloaito dtonhofer

It looks like you have an old version of this notebook or perhaps you have modified some parts of it that should not have been modified.

Are you taking this course through your University or directly from Coursera?

In the current version of this notebook, the two_layer_model function returns two return values. This is what the end of that function cell looks like in the current version of the course:

    return parameters, costs

def plot_costs(costs, learning_rate=0.0075):
    plt.plot(np.squeeze(costs))
    plt.ylabel('cost')
    plt.xlabel('iterations (per hundreds)')
    plt.title("Learning rate =" + str(learning_rate))
    plt.show()

Also note that the very next cell after that only runs the training for 2 iterations. So did you delete that cell?

1 Like

Also note just as a general matter that if you copied a solution from github, there is no guarantee that it will work: the course has been online for 8 years at this point and there have been a number of revisions. Just picking up some random version from the past is not a good idea. Of course it’s also against the rules, so I hope that is not the situation here. :nerd_face:

am taking it through Coursera sir

It looks like you have a very old version of the notebook. I don’t know how that happened, but I think you need to get a clean copy of the notebook and then copy/paste over just your work from the “YOUR CODE HERE” sections and see where that gets you. Here are the instructions for getting a clean copy, which is a topic on the DLS FAQ Thread.

1 Like