# Week 3 Exercise 3 Question

**URL:** <https://community.deeplearning.ai/t/week-3-exercise-3-question/18354>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [July 1, 2021, 5:19am UTC](https://community.deeplearning.ai/t/week-3-exercise-3-question/18354 "2021-07-01T05:19:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeyImCharlie](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@HeyImCharlie](https://community.deeplearning.ai/u/HeyImCharlie)\
**Post date:** [July 1, 2021, 5:19am UTC](https://community.deeplearning.ai/t/week-3-exercise-3-question/18354/1 "2021-07-01T05:19:00Z")

</div>

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.

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

```

---

<div class="post-metadata">

**Author:** ![crisrise](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/crisrise/32/793_2.png) [@crisrise](https://community.deeplearning.ai/u/crisrise)\
**Post date:** [July 1, 2021, 5:39am UTC](https://community.deeplearning.ai/t/week-3-exercise-3-question/18354/2 "2021-07-01T05:39:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HeyImCharlie](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@HeyImCharlie](https://community.deeplearning.ai/u/HeyImCharlie)\
**Post date:** [July 10, 2021, 10:02pm UTC](https://community.deeplearning.ai/t/week-3-exercise-3-question/18354/3 "2021-07-10T22:02:21Z")

</div>

yeah I got it, Thanks!
