Issues in Grading with no errors being reported in implementation

While Submitting the assignments, though the tests aare passed , I am getting below error after submitting the assignments:

Code Cell UNQ_C1: Function ‘compute_cost’ is incorrect. Check implementation.
Code Cell UNQ_C2: Function ‘compute_gradient’ is incorrect. Check implementation.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

This means your code does not work correctly for the data set the grader uses.

Check whether you used some global variables or hard-coded any of the variables.

I noticed when doing an assignment (Not the one you had an issue with) that if you add code outside the function block it gives an error.
Not sure if this helps you but it is something you need to look out for.

I am using the data set as provided in the assignment and there are no hard code values

1 Like

Here are some debugging tips:

1 Like

this also doesn’t help

Unable to do so , as Save and download function is disabled. When trying to save or download “Forbidden” is being shown with red text

You can try press “Not Trusted” button in the top

You’re using the wrong menu.
Use the one at the left in the main toolbar.

I’m encountering a similar problem. All my output appears to chime with the expected results, but the autograderkeeps failing me. Can you please assist?

@Kingsley_Okiwelu,
Please post a screen capture image that shows the message you get from the grader after you submit your notebook.

![Coursera](data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHZpZXdCb3g9IjAgMCAxMTU1IDE2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ry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uODNsLTM1LjQ0IDE4Ljc1Yy01LjI1LTEwLjUxLTE1LjEtMTYuNDItMjcuNTgtMTYuNDItMTIuMTQgMC0xOC4wNiA0LjI3LTE4LjA2IDExLjQ5IDAgMjQuMyA4NC43MSA4Ljg3IDg0LjcxIDY3IDAgMzAuMjEtMjQuNjIgNDguNTktNjQuMzUgNDguNTktMzMuODItLjAzLTU3LjQ2LTExLjE5LTY5LjI3LTM2Ljh6TTAgODEuNTRDMCAzNi43MyAzNi42My43NCA4Mi40My43NGMyNy45NDctLjE5NiA1NC4xODIgMTMuNzM3IDY5LjY3IDM3bC0zNC4zNCAxOS45MmE0Mi45NzIgNDIuOTcyIDAgMDAtMzUuMzMtMTguMzJjLTIzLjU1IDAtNDIuODUgMTkuNjMtNDIuODUgNDIuMiAwIDIyLjU3IDE5LjMgNDIuMiA0Mi44NSA0Mi4yYTQyLjUwMiA0Mi41MDIgMCAwMDM2LjMxLTIwbDM0IDIwLjI4Yy0xNS4zMDcgMjMuOTU1LTQxLjkwMiAzOC40MzEtNzAuMzMgMzguMjhDMzYuNjMgMTYyLjM0IDAgMTI1LjY2IDAgODEuNTR6IiBmaWxsPSIjMkE3M0NDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=)Submit AssignmentNavigateGradesLab FilesHelp


Grades

Close

Try Again

• Grade Received: 0% • To Pass: 80% or higher

Submissions

(Required)

August 27, 2022 12:14 PM BST (Highest Grade)


Comment line with index: UNQ_C2 wasn’t found in code

1 Like

Just a gentle reminder. Can you please still assist?

Apparently you deleted the comment line that contained the text “UNQ_C2”.
It should appear like this:

Yes, I did so inadvertently. I’m afraid the entire notebook has been hopelessly altered. Is there any way I can get the questions reset to the default in a new notebook? That way I can attempt the exercise again, this time being careful not to alter the pre-set code.

See Item 09 in this FAQ thread: