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.
TMosh
August 22, 2022, 6:29pm
2
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
TMosh
August 25, 2022, 3:12pm
5
Here are some debugging tips:
Here are some general guidelines before submitting your assignments in this specialization. You can refer to these when you get an unexpected score from the autograder.
Make sure that all cells in the notebook are running. If you get an error, that will also likely halt the grader.
Please save your work before clicking the Submit button. If not, you might get an error message like in the code cell below because the grader still sees your solution as None.
Failed test case: x has incorrect…
1 Like
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
TMosh
August 25, 2022, 7:53pm
10
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?
TMosh
August 27, 2022, 5:39am
12
@Kingsley_Okiwelu ,
Please post a screen capture image that shows the message you get from the grader after you submit your notebook.
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?
TMosh
September 1, 2022, 2:57pm
15
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.
TMosh
September 3, 2022, 4:02pm
17
See Item 09 in this FAQ thread: