Week 3 Testing after Exercise 9

This is a snapshot of testing the model after all the exercises have all test cases passed.

I just ran an already written code but there’s a size issue. How to resolve this?

You must be passing incorrect parameters to that section of the code. Even if the code was already written for you, it can still malfunction if you pass it incorrect parameters. Print the shapes of the values you are passing in. The usual cause of this type of error is referencing global variables, instead of the actual local values in the scope of the function.

Ya after lot of debugging, I finally found that I was feeding t_X to the model as input instead of the actual data X which was giving a teeny tiny (1,3) matrix as output instead of (1, 400).
Thanks for clarifying