C3_W4_Assignment not passed

I got the expected output for all the cells but when submitting to grading it was not passed.
The grader output: There was a problem compiling the code from your notebook. Details:
name ‘estimation_metrics_prop’ is not defined

the only change that I made is copying the content of a cell defining the class ‘estimation_metrics_prop’ and then removing the original one.

Can anyone help me out plz!

That’s a problem. Doing this usually wipes out the metadata for that cell. The grader needs the metadata.

You’ll need to get a new copy of the notebook and start over.

Instructions are in the “M4ML Resources FAQ”. You can find this using the forum search tool.

1 Like

Thank you so much for the feedback.
In fact, I followed the steps for getting a new copy of the notebook and then the assignment passed (100%). Here are the steps to follow:

  1. O​pen the notebook from the classroom.
  2. After the notebook opens up, c​lick File → Open
  3. W​hen your workspace opens, tick the check box before your notebook file. After it is selected, press Shutdown. The icon beside the filename should turn from green to gray.
  4. Important: Tick the checkbox again and this time choose Rename and enter any filename other than the original. For example, C4W1_Assignment.ipynb (original) → C4W1_Assignment_v2.ipynb. If you don’t rename your current notebook, the new one will not be fetched.
  5. (Optional) Tick the checkbox of any other file that you want to get a fresh copy of (e.g. dataset files that you might have manipulated irreversibly). Then click Delete. You can also opt to Rename or Download each file individually in case you want to keep them before deleting.
  6. Click on the Help button on the top right of the page.
  7. Click the Get latest version button.
  8. Click the Update Lab button. The page will refresh and you should now see the latest version of the notebook. It will have the original filename in your workspace.