Deeplearning.AI Tensorflow Developer

Respected Sir/Mam,

              Even after after passing all tests cases  in Assignment there was problem grading.

Grader Output says:
There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
name ‘series_train’ is not defined

while it is defined properly and even graded which was very easy task.
@Community-Team
@andrew sir

Hi @Rajat_Pathak ,

If the kernel has been idle for awhile or you are logging back to your account to continue working on your notebook, then, you need to rerun your code from start, as the executing environment is out of sync.

If you want to do a clean run, from the menu bar on top of your notebook, click:
Kernel ->restart and clear all output
Cell → run all

Dear @Kic ,
Followed the instructions still the problem exists.
The grader doesn’t grade properly.
Thanking You,
Rajat Pathak

Hi @Rajat_Pathak ,

Here is a list of suggestions to resolve grader problem, although the title referring to the MLS specialization, but it should apply. If nothing works, then, the best thing to do is to get a fresh copy of your assignment as suggested in the list.

hi @Rajat_Pathak

A grader feedback with series_valid not defined points either you are using incorrect functions or mixing global variables with local variables. Here is a post with 3 solutions which should help you debug your codes. While passing unittest is related to grade function codes but doesn’t always confirm one would pass the assignment grader.

Let me know if you’re still stuck. Also as you are posting first time a query, just for you information posting any of the codes from grade function code in public post is not allowed and considered violation of Code of Conduct. If a mentor wants to see your codes, they will ask you to send them by personal DM.

Regards
DP

Just to add, the notebook has this note in one of the cells:

The following cell creates the splits which will later be used to check the metrics of different forecasts. These variables are NOT meant to be used in your solutions. Remember that globals that are safe to be used are denoted by UPPER CASE.

series_train is one of the variables in the following cell. Hope this helps.

3 Likes