All tests passed but getting a grader error and a score of 0

Grader error

I passed all tests on my first week course assignment.

However I get a grader error and a score of 0.

The following is the error message:

“There was a problem compiling the code from your notebook. Details:
name ‘index_samp’ is not defined”

Has anyone faced a similar issue?

Thank you

Deepti

You’re lucky that in this case the grader message is pretty specific. Have you searched for index_samp as a string in that notebook? Is it referenced, but not defined?

If you don’t find that string, then another possibility to consider is that perhaps you didn’t do a “Save” before the submit and the grader is seeing an older version of the notebook.

1 Like

Hello there,

After checking the notebook for this week, I see there is an index_sample in average_overlap(samples, similarity_fn) function. I think you have mistyped it!

1 Like

Thanks Paul.

Indeed i had not saved the notebook changes and the code was incomplete in the notebook being graded.

Thanks for your reply.

Regards

Deepti

2 Likes

Thanks for your reply.

My latest code was in another notebook which was not being saved/evaluated.

Problem solved.

Thanks much

Deepti

1 Like