C1W4 Assignment grading issue

out of the 5 exercises I completed the first 4 and got all tests passed. I struggled a bit in exercise 5 but still got 2 units passed 4 units failed. I decided to submit it, and ended up getting a 40 percent grade. I basically got 0 for exercises 3, 4 and 5. Need help

Thank you

I recommend you not grade your assignment until you pass all of the notebook tests.

Passing the notebook tests does not prove your code is perfect. The grader uses different tests.

Check if your code in the notebook has any of these mistakes:

  • Using global variables inside a function.
  • Not using the variables that are passed as function arguments.
  • Modifying code that is outside of the marked areas.
  • Adding new cells
  • Deleting cells
  • Downloading the notebook to work on it locally, then uploading it back to Coursera for grading. The grader does not like this.

Please post some screen capture images that show any error messages your code causes, or the detailed feedback from the grader.

I will look into these once more, and if I still keep running into trouble I will comeback with screenshots

I figured it out. I hardcoded with training example values before. After generalizing it, it works just fine.

1 Like

That’s good news!