C1_W3_Assignment_initialize_parameters() - correct output but zero marks

Hello, when I run my code for Exercise 3 “Initialize the model’s parameters” it returns the correct output (as per expected output), however, I when I submit the assignment, I get zero marks. Can someone please advise where I am going wrong?
Many thanks in advance.

{moderator edit: code removed}

1 Like

@Sean_Winn

make the dimensions of w (actual number of output units, actual number of input units)
b is also (actual number of output units, 1)

2 Likes

let me know if that works and if you understood why we are using this way.

2 Likes

There are at least two errors in your code.

They involve the order of the arguments for the randn(…) function, and not specifying the shape of the ‘b’ parameter correctly.

Reference the doctext for the “params” variable.

2 Likes

Also, in the future, please do not post your code on the forum. That’s not allowed by the Code of Conduct.

Posting the error messages is fine.

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

2 Likes

Thank you both. Resolved now. And apologies, I won’t post code again (only error messages).

No problem.