Course 1 Week 4 Exercise 5 in 1st programming assignment

As per the instructions given in the cell i had written the code, But it was throwing the exception as follows. Please help in this regard.

Hi @Nandhan,

Please make sure you are not using any global variables or hardcoded values in your function.

Best,
Mubsi

Hi @Nandhan. Check that you are not getting bad input from the parameters dictionary. WIth this Exercise, I have seen a number of copy/paste errors where the call to linear_activation_forward in the final layer mimics the call in the nested in the loop. Simply changing the activation argument from "relu" to "sigmoid" is not sufficient. The first argument (the input to the final layer) must change as well.

Thanks for your kind suggestion and for rectifying mistake