C2 Week 3 Exc 7

Hello guys!
I have some problems with Exc,7

{moderator edit: code removed}

I run this and I got assertion problem. I tried to submit my assignment and I got an error.
Can someone help me figure out where I am wrong?
I checked the A2 Shape and is = n_y, X

Please do not post your code on the forum. That’s not allowed by the Code of Conduct.

If a mentor needs to see your code, we’ll contact you privately with instructions.

I will edit your message to remove the code.

If you get an assertion, there is no reason to submit your code for grading. The assertion means your code has a defect, and it surely will not pass the grader.

The most important thing you can post is a screen capture image that shows the assertion. That’s where the most useful clues are to debug the issue.

Please post an image of the entire assertion message.

One hint about your code:

I believe you have the order of the parameters incorrect when you call initialize_parameters(…). The order of the parameters used in nn_model() should match the function definition:


Thanks so much! I solve it without problem thanks to ur hint.

Sorry for the code, I didn’t know about it. Sorry