# C4W1 Assignment Grading Error

**URL:** <https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133>\
**Category:** Sequences, Time Series and Prediction\
**Tags:** week-module-1\
**Created:** [November 1, 2024, 5:02pm UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133 "2024-11-01T17:02:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfaqihzacky](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mfaqihzacky](https://community.deeplearning.ai/u/mfaqihzacky)\
**Post date:** [November 1, 2024, 5:02pm UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133/1 "2024-11-01T17:02:43Z")

</div>

Hello,

I am experiencing an issue with my assignment grade for C4W1. My code and expected values align with the instructions provided, and all unit tests have passed successfully. However, my score shows as 0, with the message: “There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: name ‘series\_valid’ is not defined."

I have indeed defined `series_valid` as shown in the attached screenshot. This issue is not unique to me; several other students in the course are encountering the same problem.

I kindly request assistance from the DeepLearning.AI team to help resolve this issue, as I am working against a deadline in my academic program. Thank you very much for your attention and support.

Link: [https://www.coursera.org/learn/tensorflow-sequences-time-series-and-prediction/programming/90kXA/working-with-generated-time-series/submission](https://www.coursera.org/learn/tensorflow-sequences-time-series-and-prediction/programming/90kXA/working-with-generated-time-series/submission)  
My Lab ID: uqbzobbgkmsz

 ![Screenshot](https://global.discourse-cdn.com/dlai/original/3X/9/3/9352e3115bc3c11642ddffaa9629dc370a541911.png)

---

<div class="post-metadata">

**Author:** ![mfaqihzacky](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mfaqihzacky](https://community.deeplearning.ai/u/mfaqihzacky)\
**Post date:** [November 1, 2024, 5:06pm UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133/2 "2024-11-01T17:06:47Z")

</div>

I would also like to add that I have tried refreshing the workspace multiple times, as recommended by the DeepLearning.AI support team. Unfortunately, the issue persists despite these efforts.

---

<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:** [November 1, 2024, 5:56pm UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133/3 "2024-11-01T17:56:20Z")

</div>

Passing the notebook’s tests does not prove your code is perfect. The grader uses different tests.

What is the grader’s detailed report for the other functions?

series\_valid appears to be a local variable inside the train\_val\_split() function. So you cannot use this variable from any other scope.

If your code is using series\_valid in some other scope, then the grader might crash, and when that happens it reports the same error for all functions.

---

<div class="post-metadata">

**Author:** ![mfaqihzacky](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mfaqihzacky](https://community.deeplearning.ai/u/mfaqihzacky)\
**Post date:** [November 1, 2024, 7:00pm UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133/4 "2024-11-01T19:00:37Z")

</div>

It works! thank you very much for your feedback.

---

<div class="post-metadata">

**Author:** ![Quancheng](https://avatars.discourse-cdn.com/v4/letter/q/ee7513/32.png) [@Quancheng](https://community.deeplearning.ai/u/Quancheng)\
**Post date:** [November 2, 2024, 7:23am UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133/5 "2024-11-02T07:23:32Z")

</div>

Please help, can you tell me what is wrong? I haven’t solved it yet.

---

<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:** [November 2, 2024, 7:50am UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133/6 "2024-11-02T07:50:46Z")

</div>

@Quancheng, have you read my previous reply on this thread? It sounds like the same issue.

---

<div class="post-metadata">

**Author:** ![Quancheng](https://avatars.discourse-cdn.com/v4/letter/q/ee7513/32.png) [@Quancheng](https://community.deeplearning.ai/u/Quancheng)\
**Post date:** [November 2, 2024, 11:23am UTC](https://community.deeplearning.ai/t/c4w1-assignment-grading-error/717133/7 "2024-11-02T11:23:18Z")

</div>

@TMosh I saw your reply, and I’m sorry to say that I still don’t know where the mistake is.
