Week 3 Exercise 3 Question

Regarding these two matrices, I am somewhat confused by the dimensions. Isn’t W2’s dimensions supposed to be (n_y, n_h) and b2’s supposed to be (n_y, 1)? If n_y is 2, why are these matrices not sized accordingly? Help would be much appreciated.

W2 = [[-0.01057952 -0.00909008  0.00551454  0.02292208]]
b2 = [[0.]]

Hi @HeyImCharlie I believe that in this case n_y is 1 as returned from the initialize_parameters_test_case() function. Therefore the size of W2 and b2 seems to be correct. I hope I did understand you correctly, in case le me know.

yeah I got it, Thanks!