# Week 1 summary clarification

**URL:** <https://community.deeplearning.ai/t/week-1-summary-clarification/847644>\
**Category:** Advanced Learning Algorithms\
**Tags:** week-module-1\
**Created:** [July 8, 2025, 10:40am UTC](https://community.deeplearning.ai/t/week-1-summary-clarification/847644 "2025-07-08T10:40:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdabach](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sdabach](https://community.deeplearning.ai/u/sdabach)\
**Post date:** [July 8, 2025, 10:40am UTC](https://community.deeplearning.ai/t/week-1-summary-clarification/847644/1 "2025-07-08T10:40:05Z")

</div>

1. layer 0 is the input x which is a vector? of features.
2. The NN consists of l layers
3. Each layer has a different number of neurons (j)? Does it make sense to have the same number? So j is different for each layer
4. Each neuron has parameters w and b where the size of w depends on the number of neurons in the previous layer? and for each neuron the size of 2 is the same but the values are different?
5. Does that mean the for forward propagation w is actually a 3D array (Tensor?)
6. b is a matrix (2D) of values for every neuron in each layer but the length is not the same since layers have different number of neurons.
7. So what do we put in the missing places?

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [July 20, 2025, 1:41am UTC](https://community.deeplearning.ai/t/week-1-summary-clarification/847644/2 "2025-07-20T01:41:26Z")

</div>

Hello, @sdabach, my response in place in bold font.

> [@sdabach](#):
>
> - layer 0 is the input x which is a vector? **(Yes)** of features.
> - The NN consists of l layers
> - Each layer has a different number of neurons (j)? **(Yes)** Does it make sense to have the same number? So j is different for each layer
> - Each neuron has parameters w and b where the size of w depends on the number of neurons in the previous layer? **(Yes)** and for each neuron the size of 2 is the same but the values are different? **(I don’t understand what you meant by “size of 2”)**
> - Does that mean the for forward propagation w is actually a 3D array (Tensor?) **(No, w is 2 dimensions with the size of the first dimension being the number of neurons in the previous layer and the size of the second dimension being the number of neurons in the current layer.)**
> - b is a matrix (2D) of values for every neuron in each layer but the length is not the same since layers have different number of neurons.**(No, b is 1 dimensional with the size equal to the number of neurons.)**
> - So what do we put in the missing places? **(I don’t understand what you mean by missing places.)**

---

<div class="post-metadata">

**Author:** ![sdabach](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sdabach](https://community.deeplearning.ai/u/sdabach)\
**Post date:** [July 30, 2025, 8:02am UTC](https://community.deeplearning.ai/t/week-1-summary-clarification/847644/3 "2025-07-30T08:02:49Z")

</div>

- Each neuron has parameters w and b where the size of w depends on the number of neurons in the previous layer? **(Yes)** and for each neuron the size of **b** is the same but the values are different?
- 
  - Does that mean the for forward propagation w is actually a 3D array (Tensor?) **(No, w is 2 dimensions with the size of the first dimension being the number of neurons in the previous layer and the size of the second dimension being the number of neurons in the current layer.)** So how do you store w for the different layers after the training? Do you create a parameter w\_1…w\_l for each layer? Same questions for b.

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [August 5, 2025, 12:22am UTC](https://community.deeplearning.ai/t/week-1-summary-clarification/847644/4 "2025-08-05T00:22:22Z")

</div>

> [@sdabach](#):
>
> So how do you store w for the different layers after the training? Do you create a parameter w\_1…w\_l for each layer? Same questions for b.

Yes, we have one w for each layer. Each w is a 2D array. We don’t stack them together to form a 3D array because they can have different shapes.

Let’s discuss that with an example.

Let’s say we have an input of 2 features and 3 layers of 5, 7, 1 neurons respectively, so we have the following weights shapes: (2, 5), (5, 7), and (7, 1) – all 2D arrays and can’t be simply stacked together into a 3D array.

The vanilla gradient descent formula is:

 ![image](https://global.discourse-cdn.com/dlai/original/3X/e/5/e555b9aedf37673501993a5d5fb48ab5b091c0d6.png)

So, before and after a learning step, the shape of the weight remains 2D.

Cheers,  
Raymond
