# Problem with the final assignment

**URL:** <https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091>\
**Category:** Linear Algebra for Machine Learning and Data Sc...\
**Tags:** week-module-4\
**Created:** [March 6, 2023, 5:37pm UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091 "2023-03-06T17:37:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexmaszanski](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/alexmaszanski/32/37967_2.png) [@alexmaszanski](https://community.deeplearning.ai/u/alexmaszanski)\
**Post date:** [March 6, 2023, 5:37pm UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/1 "2023-03-06T17:37:47Z")

</div>

Hi everyone,

When I submit my assignment “Eigenvalues and Eigenvectors” on the week 4, I had the following error:

```auto
There was a problem compiling the code from your notebook. Details:
name 'P' is not defined

```

What might cause this? The variable P does not even begin with the 1st exercise, but only with the 4th…🫠

---

<div class="post-metadata">

**Author:** ![Archana\_Vignesh](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Archana\_Vignesh](https://community.deeplearning.ai/u/Archana_Vignesh)\
**Post date:** [March 6, 2023, 6:23pm UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/2 "2023-03-06T18:23:42Z")

</div>

I am seeing the same issue. @alexmaszanski were you able to resolve it?

---

<div class="post-metadata">

**Author:** ![alexmaszanski](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/alexmaszanski/32/37967_2.png) [@alexmaszanski](https://community.deeplearning.ai/u/alexmaszanski)\
**Post date:** [March 7, 2023, 4:58am UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/3 "2023-03-07T04:58:23Z")

</div>

Not yet​🥲 But I also wrote to the support on the course page, because it does seem strange.

---

<div class="post-metadata">

**Author:** ![alexmaszanski](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/alexmaszanski/32/37967_2.png) [@alexmaszanski](https://community.deeplearning.ai/u/alexmaszanski)\
**Post date:** [March 8, 2023, 5:33am UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/4 "2023-03-08T05:33:24Z")

</div>

So I used `# grade-up-to-here` tag in the end of cells I wanted to evaluated. I did it up to the 3rd exercise and received  
`Failed test case: Object P has incorrect type.. Expected: <class 'numpy.ndarray'>, but got: <class 'NoneType'>.`  
That’s weird, because I have `P = np.array ... `

---

<div class="post-metadata">

**Author:** ![Archana\_Vignesh](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Archana\_Vignesh](https://community.deeplearning.ai/u/Archana_Vignesh)\
**Post date:** [March 10, 2023, 5:26pm UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/5 "2023-03-10T17:26:23Z")

</div>

May be the notebook needs a complete reset.  
I was able to refresh the notebook and redo the assignment(I saved a copy my finished notebook so I can copy over the answers to the refreshed one)  
The grading went through fine.

---

<div class="post-metadata">

**Author:** ![alexmaszanski](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/alexmaszanski/32/37967_2.png) [@alexmaszanski](https://community.deeplearning.ai/u/alexmaszanski)\
**Post date:** [March 10, 2023, 7:33pm UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/6 "2023-03-10T19:33:16Z")

</div>

That’s great! How did you reset the notebook?

---

<div class="post-metadata">

**Author:** ![Archana\_Vignesh](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Archana\_Vignesh](https://community.deeplearning.ai/u/Archana_Vignesh)\
**Post date:** [March 10, 2023, 8:03pm UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/7 "2023-03-10T20:03:00Z")

</div>

In Week1 of this course, there is a reading page on Refreshing the workspace.  
[https://www.coursera.org/learn/machine-learning-linear-algebra/supplement/cfleU/optional-downloading-your-notebook-and-refreshing-your-workspace](https://www.coursera.org/learn/machine-learning-linear-algebra/supplement/cfleU/optional-downloading-your-notebook-and-refreshing-your-workspace)

---

<div class="post-metadata">

**Author:** ![alexmaszanski](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/alexmaszanski/32/37967_2.png) [@alexmaszanski](https://community.deeplearning.ai/u/alexmaszanski)\
**Post date:** [March 11, 2023, 4:51am UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/8 "2023-03-11T04:51:21Z")

</div>

Yeah, it’s working! Thank you my man, you made my day!! 🤗

---

<div class="post-metadata">

**Author:** ![Ginger\_de\_Ridder](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/ginger_de_ridder/32/72963_2.png) [@Ginger\_de\_Ridder](https://community.deeplearning.ai/u/Ginger_de_Ridder)\
**Post date:** [March 12, 2023, 4:59am UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/9 "2023-03-12T04:59:31Z")

</div>

Had the same issue and you solved it. Thanks!🙂

---

<div class="post-metadata">

**Author:** ![Vaso\_Sapouna](https://avatars.discourse-cdn.com/v4/letter/v/e19adc/32.png) [@Vaso\_Sapouna](https://community.deeplearning.ai/u/Vaso_Sapouna)\
**Post date:** [March 12, 2023, 12:08pm UTC](https://community.deeplearning.ai/t/problem-with-the-final-assignment/286091/10 "2023-03-12T12:08:39Z")

</div>

hello i need help with assignments can you made help me
