Why is my grade not fixing?

In the Programming Assignment: Week 2 practice lab: Linear regressiony, My grade is stuck on 0% even though I have evidently answered and gotten the expected outcomes and passed the tests. Can someone explain? Am I doing something wrong?

Please notice that the grader does give you a very specific message about what is wrong: it looks like you must have modified the code in that cell and removed the comment line that included the tag UNQ_C1. There was no reason to do that and it was a mistake, as we see from the result. As a general matter, it is recommended to only change things in the “YOUR CODE HERE” areas. It’s not illegal to change or add code outside those boundaries, but you need to be sure you know what you are doing if you “go there”. :nerd_face:

You can recover what the template code needs to look like by getting a fresh copy of the notebook using these instructions.

2 Likes

Thank you for the reply. I have tried to update the lab as per the instructions, but the error has not changed. It sent a message that it retrieved the files, so maybe that’s why

Yes, the error did change. You get completely different messages from the grader now. It does not say you are missing the UNQ_C1 tag, so that part of the recovery must have worked. Now it is telling you that the compute_cost and compute_gradient functions both are not correct. They must be returning wrong answers. Are you sure that you filled in the code in the fresh copy of the notebook? That does not happen automatically: you have to “copy/paste” from the old renamed notebook into the new fresh copy or enter the code again from scratch.

Yes, the score is the still same, but that’s not the part that requires your attention. You got lucky in both cases and it actually gives you more specific information about why you got 0 points. I have highlighted the relevant portion in the screenshot that you posted:

Well, it says “All tests passed” on both exercises. I do not know what the mistake is

It looks like the notebook you are working on is not the “standard” one. Yours is called aws1. When you click “Submit” to the grader, it only grades the “official” notebook, which is the one that is opened when you click “Work in Browser” or “Launch Lab”.

You need to rename your notebook to the correct name. That is

C1_W2_Linear_Regression.ipynb

Oh, that’s right. It’s fixed now. Thank you for your help!

1 Like