# I got errors in test functions that I can't change or delete

**URL:** <https://dlai.staged-by-discourse.com/t/i-got-errors-in-test-functions-that-i-cant-change-or-delete/199382>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [September 5, 2022, 9:36pm UTC](https://dlai.staged-by-discourse.com/t/i-got-errors-in-test-functions-that-i-cant-change-or-delete/199382 "2022-09-05T21:36:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zainabmel](https://avatars.discourse-cdn.com/v4/letter/z/6a8cbe/32.png) [@zainabmel](https://dlai.staged-by-discourse.com/u/zainabmel)\
**Post date:** [September 5, 2022, 9:36pm UTC](https://dlai.staged-by-discourse.com/t/i-got-errors-in-test-functions-that-i-cant-change-or-delete/199382/1 "2022-09-05T21:36:00Z")

</div>

I got an error for the initialization test functions that haven’t been defined in the code and I can’t even delete its call, so even if my code is correct, it can’t run the test cells without errors.

 ![Screenshot 2022-09-06 002518](https://global.discourse-cdn.com/dlaistaging/original/3X/5/8/5872e37ba0a458c480082eb9e77da7810a2b7934.png)

NameError: name ‘initialize\_parameters\_zeros\_test’ is not defined, and the same thing for (initialize\_parameters\_random\_test(initialize\_parameters\_random)) and (initialize\_parameters\_he\_test(initialize\_parameters\_he))

Does anyone know how to solve this problem?

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://dlai.staged-by-discourse.com/u/paulinpaloalto)\
**Post date:** [September 5, 2022, 9:45pm UTC](https://dlai.staged-by-discourse.com/t/i-got-errors-in-test-functions-that-i-cant-change-or-delete/199382/2 "2022-09-05T21:45:13Z")

</div>

That message simply means you have not run the “import” cell early in the notebook which imports those test functions from the file `public_tests.py`. Try “Cell → Run All Above” and then run that test cell again.

FWIW there is a topic about this on the [DLS FAQ Thread](http://dlai.staged-by-discourse.com/t/faq-frequently-asked-questions-for-all-dls-courses/74), which is worth a look in general if this is news to you.

If you try my proposed solution and it doesn’t work, then it must mean you have accidentally damaged the notebook in such a way that the “import” cell no longer works. E.g. maybe you accidentally turned it from a “code” cell into a “markdown” cell. In that case, the solution is to start with a clean copy of the notebook and carefully copy over just your completed work from the “YOUR CODE HERE” sections. There is also a topic about how to do that on the FAQ Thread.
