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.
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.
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.