# Building\_your\_Deep\_Neural\_Network\_Step\_by\_Step - C1W4

**URL:** <https://community.deeplearning.ai/t/building-your-deep-neural-network-step-by-step-c1w4/450310>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [September 20, 2023, 1:15am UTC](https://community.deeplearning.ai/t/building-your-deep-neural-network-step-by-step-c1w4/450310 "2023-09-20T01:15:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Cabrera](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Bruno\_Cabrera](https://community.deeplearning.ai/u/Bruno_Cabrera)\
**Post date:** [September 20, 2023, 1:15am UTC](https://community.deeplearning.ai/t/building-your-deep-neural-network-step-by-step-c1w4/450310/1 "2023-09-20T01:15:07Z")

</div>

Hello! Im having problems with the ex 10, this is mi code

```auto
W1 = [[-0.59562069 -0.09991781 -2.14584584 1.82662008]
 [-1.76569676 -0.80627147 0.51115557 -1.18258802]
 [-1.0535704 -0.86128581 0.68284052 2.20374577]]
b1 = [[-0.04659241]
 [-1.28888275]
 [0.53405496]]
W2 = [[-0.55569196 0.0354055 1.32964895]]
b2 = [[-0.84610769]]
Error: Wrong output for variable W1.
Error: Wrong output for variable b1.
Error: Wrong output for variable W2.
Error: Wrong output for variable b2.
 2 Tests passed
 1 Tests failed
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-29-e0da3f3aab9d> in <module>
      7 print ("b2 = "+ str(t_parameters["b2"]))
      8 
----> 9 update_parameters_test(update_parameters)

~/work/release/W4A1/public_tests.py in update_parameters_test(target)
    578 ]
    579 #print(target(*test_cases[2]["input"]))
--> 580 multiple_test(test_cases, target)
    581 
    582 

~/work/release/W4A1/test_utils.py in multiple_test(test_cases, target)
    140 print('\033[92m', success," Tests passed")
    141 print('\033[91m', len(test_cases) - success, " Tests failed")
--> 142 raise AssertionError("Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.".format(target. __name__ ))
    143 

AssertionError: Not all tests were passed for update_parameters. Check your equations and avoid using global variables inside the function.

```

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [September 20, 2023, 3:18am UTC](https://community.deeplearning.ai/t/building-your-deep-neural-network-step-by-step-c1w4/450310/2 "2023-09-20T03:18:54Z")

</div>

Your code is missing an important line:  
 ![image](https://global.discourse-cdn.com/dlai/original/3X/1/3/13ea9b2af6fe8fe3c7bc86d5e3936486bc5fe821.png)

Did you delete it?

And again, please don’t post your code on the forum. Thanks!

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [September 20, 2023, 3:19am UTC](https://community.deeplearning.ai/t/building-your-deep-neural-network-step-by-step-c1w4/450310/3 "2023-09-20T03:19:47Z")

</div>

After you fix that, you’ll need to re-run all of the cells in the notebook.

That’s because your code (without the deepcopy() line) was modifying a global variable from the workspace. That’s bad.
