These are compute_cost and compute_gradient function, I have spent more than two days on this issue everything is outputting right:
def compute_cost(x,y,w,b):
# mentor edit: code removed
the other Function:
def compute_gradient(x,y,w,b):
# mentor edit: code remove
the error i am getting:
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 error.
If you want anything else I will be happy to provide.
Hi! Can you let us know what you see when you try to post a screenshot? Does it show any message? Will include it in my report so it can be fixed. Thanks!
On another note, I see you already included the error messages in the initial post. Have you tried the troubleshooting tips here already? Also check the other FAQs if any of it helps. Let us know how it goes. Thanks.
Each graded code cell has special marker for the grader for testing your code, however, none of these special markers can be seen on your assignment. Below is an example:
#UNQ_C1
Also, the unit test helps to check your code, but that is not the full test. The grader has a different set of tests and criteria to check your code.
As you file is now corrupted, I suggested you take a fresh copy of the assignment and redo you code.
renamed your current assignment file to something different
click on the help button on the top right with a ? symbol, a side window will open and follow the instruction for getting latest version
I have done it all I have included the #UNQ_C1 and all it doesn’t work, see I think you mean well but it has been 3 days and I am stuck here the other assignment does not work either. Please look into it. I just want to learn. I do not want submitting code again and again to get a 0% my lifestyle.
Please seriously look into it.
Or screw the certificate just let me watch the videos. They are not on YouTube. This is the most abysmal experience I have ever had working with a course.
I have taken a fresh copy of the assignment, and copied UNQ_C1 and UNQ_C2 of your code to my copy of the assignment. Passing unit tests with results matching the expected output and successfully submitted to the grader with 100%.
So there is no problem with the grader grading your assignment, it must be something else. I suggest you do a clean run, save it before submit your assignment. It could be the autosaved is not activated, hence any changes you made have not been saved when you submit your assignment for grading.
Please follow these steps from the menu bar at the top of your notebook:
kernel → restart & clear all output
cell → run all
file → save and check point
submit assignment
I want to get to the bottom of this, so do let us know how you get on.
Hi Arvind. I’m seconding Kin’s findings. As mentioned earlier, please refer to the troubleshooting tips here to make sure your notebook is formatted correctly for the grader. That also has a link on how to get a fresh copy of the lab. The notebook you uploaded is invalid because of the filename and removal of other boilerplate code (I have to take this down as per forum policies). Once you get a new notebook with the correct filename, you can simply paste your solution in the right places, make sure everything runs, then submit. Hopefully you also get 100 as Kin and I did (using your solution in the two required exercises). Hope this helps.
Man I copied the code as it is from coursera as it, AS IT IS, still won’t take, I don’t know what to do have done everything. You guys cannot build a better grader or is there something wrong coz I don’t see it.
I have similar issues with week 2 assignment. I followed your instructions to restart & clear all output, and their subsequent steps. I still run into the same issue of receiving 0% grade after submission, despite not seeing any error code and receiving the correct output result on the notebook.
Upon checking the “My Submission Tab,” it says the error is “Comment line with index: `UNQ_C1` wasn’t found in code. ”