Week 3 Programming Assignment: Single Perceptron Neural Networks for Linear Regression

  • Week 3 programming assignment
    Hi ! I am trying to complete week 3 programming assignment. The first time i submitted my assignment all of my codes ran but one. Now that I try to edit it all my test are running but when I recieve my grading it says coded could not run or y isnt defined
1 Like

Hi @Tamara_Bonheur

Before submitting your solution, you must doublecheck that the notebook runs entirely - without any error. If there is any exception being thrown, it will break the grader.

If you want to skip part of the exercise, you should add # grade-up-to-here before the last cell you want to be skipped, this will make the grader ignore everything that comes after the statement.

if this does not help you, let me know.

Thanks,
Lucas

1 Like

Thanks Lucas. I think thatā€™s what it is. One of my cells arenā€™t running properly but Iā€™m not sure how to fix it. For my code to make sure all test run correctly Iā€™m getting this message:

NameError Traceback (most recent call last)
in
----> 1 w3_unittest.test_forward_propagation(forward_propagation)

NameError: name ā€˜w3_unittestā€™ is not defined

HI @Tamara_Bonheur ,

The error message suggested that the execution environment is not up to date. You need to refresh the kernel and rerun the code from start.

1 Like

Note that ā€œgrade up to hereā€ doesnā€™t really work reliably. If you leave any code in your notebook that has invalid syntax (like a ā€œNoneā€ statement you havenā€™t replaced yet), the grader will crash, and give you confusing error messages.

2 Likes

As @Kic mentioned, it looks like the file w3_unittest.py is missing from your workstation. Please follow the instructions here to refresh your workspace and get new copies of the files.

1 Like

Can you post a screen capture image of your workspace and that error message? That might be helpful to diagnose the issue.

Thank you all! After a few tries it worked

1 Like

It not helped me

All my tests passed but still the program is showing There was a problem compiling the code from your notebook. Details:
name ā€˜parametersā€™ is not defined

PLEASE SEE THIS AS QUICK AS POSSIBLE