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.
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: