Error in grading my assignment

I am taking the course AI Python for beginners. I am about to submit the last assignment(module 4). When i test my code in the notebook with (test_your_code) function, it returns “All Tests passed”, but when i go ahead and submit the assignment, my grade is 0/10 for each of the five assignments. The grader comment is “There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: name ‘get_top_candies’ is not defined” I do not understand why this is happening when in the notebook itself i have passed the test. My deadline for this test is january 9. Kindly help.

Shoaib was not correctly calling the imported function (get_top_candies) from the helper file.

A reminder for others who find this thread:

Passing the tests in the notebook does not prove your code is perfect. The tests in the notebook do not cover all possible errors, and the grader uses entirely different tests.

Hello,
my name is Angelo Baert (7 dog years old) from Belgium and I’m new to the AI Python for Beginners course.

I just passed my Module 1 Quiz (100%) and first assignment { Working with a Virtual Library } but got a “Grader Error - Grader feedback not found” for Exercise 1 and referring me to the Forum if not resolved within 24hrs … Question: Do I need to re-submit my assignment ?

To my surprise I also only got graded (66,66%) despite all codes but Exercise 1 passed from the first time. Does this error have anything to do with the rather low, perhaps partial, grading ? Just want to understand the garding parameters: time, errors, retry … for next tests. Thanks for a short feedback.

Yes, after you fix its problems.

Tips:
Passing the tests in the notebook does not mean your code is perfect. The notebook’s tests do not catch every possible error.

And, the grader uses a totally different set of tests.

So it is very common to pass the notebook tests, but not be graded 100%.

This means there are some errors in the code you added to the notebook, which make the grader unhappy.

Specifically:
The “Grader feedback not found” message means that you have modified the notebook in some unexepcted way, and the grader cannot use it correctly.

There are many possible causes. Here are a few common ones:

  • adding cells to a notebook
  • moving or deleting cells within a notebook
  • modifying the notebook in ways that you were not asked to. For example, changing the name of a function, adding parameters to a function definition, or deleting some of the comment text that you did not understand the purpose of.
  • editing the notebook using some other tools besides Coursera Labs.

The notebooks have clearly marked areas where you are to add your code. Modifying anything outside of those areas can cause problems with the grader.

I am experiencing the same issue. Now when I go into module 4 and launch the assignment I receive an error that the assignment isn’t found. @Mubsi

Hi @Ashcam,

Replying to you here after seeing the direct message you sent me.

Please note, assignments have default names which are required by the system for grading and opening the assignment file. In this case, the name of the assignment file is C1M4_Assignemnt.ipynb.

In the direct message you sent me, you mentioned, initially you were getting 0 score after submitting, and later when you tried to open the assignment again, you are now seeing a 404 - Not found error.

What has happened is that you have renamed (or deleted the file) your assignment to something other than the default name C1M4_Assignemnt.ipynb. When you clicked the Submit assignment button, the grading system sent the assignment with the default name C1M4_Assignemnt.ipynb, NOT the assignment file which you were working in, for grading. It is possible it might have been an empty submission because you got the 404 error next.

Now, regarding the 404 error, since you renamed the assignment file, the system can no longer find the default file (C1M4_Assignment.ipynb) in your workspace to open, and hence it is showing you that error.

Open the assignment again, and on the top right there should be an icon ? called Help, click that. When the panel opens, click on getting the latest file. That should fetch a new copy of the assignment file with the default name. Work in that particular file before submitting. And remember to not rename or delete it.

Best,
Mubsi

1 Like