Programming Assignment Week 3 : Single Perceptron

I have started Week 3 Programming Assignment of Single Perceptron Neural Networks The problem is that i have accidently deleted the cell of notebook and after that i dont create any backup point and then i deleted all the files from file section and updated the whole assignment almost for more than 10 times but still i m getting an error and my grade is showing 70% i have completed almost the whole course but due to this assignment my certificate and completion is pending the error i’m getting at the first attempt after that i have deleted the cell i have fixed that error and the entire updated notebook runs well but at graded section i have shown with the same error by the system
I am also attaching the image for clarification that my entire code is error free

1 Like

Click on any of the > markers, and this will display the detailed grader feedback.

Please post a screen capture image of all of the different messages for the functions.

1 Like

Note that if you delete a cell, that erases its metadata. The grader uses this metadata to control its actions. Re-creating the cell (by inserting a new cell) does not restore the original metadata.

You might need to get a fresh copy of the notebook and start over. You will need to rename your current notebook and then use “Help → Get latest version”, then restart the kernel and open the new notebook from the File menu.

1 Like


You can check this but right now there is no error in my entire notebook all the cells executedely successfully

1 Like

Dear @TMosh let me explain what i have done
I was getting an error so i deleted the cell after that when i fixed the error my notebook was throwing an error continously so i deleted all the files from File section and then i click on help and get a new Copy of Notebook and started to code again and all the notebook runs successfully but it show’s the previous grades i updated the notebook more than almost 10 times

1 Like

waiting for your response @TMosh

1 Like

Done with this also getting the same error

1 Like

Please be patient. Note that the mentors are community volunteers, and I have been busy for the last hour taking care of some person business around my home.

The “2 positional arguments but 3 were given” message means that you have either:

  • an obsolete copy of the notebook ipynb file.
    or
  • an obsolete copy of the w3_unittest.py file.

What is the file name of the notebook you are submitting for grading? Note that the grader always uses the original notebook file name, regardless of the name of the notebook you have open when you submit it.

So, you cannot grade a notebook that you have renamed.

I mention this just to cover this issue, as it is not unusual.

1 Like

I’m Really sorry for the disturbance
Right now i have renamed the old note book and get a new one with Help menu and after that i restarted the kernel and still getting this error

1 Like

If you’re getting the same error, you probably have the same error still - one of your files is obsolete.

I recommend you follow the procedure in “Topic 1.b” in the M4ML FAQ.

1 Like

i have tried this method i have deleted all files with the same procedure and then get new version of the file from help menu but still it is throwing an error

1 Like

Update:

Issues involved an obsolete copy of the notebook, and some incorrect changes to the positional arguments.