Grading Error Course 1 Week 2

I already looked at earlier forums and still have this problem. I’m passing all the tests in the notebook but the course shows me an 88/100 and I’m not sure why.

I don’t have anything hard-coded and I only used math.exp() once when directed to for the basc_sigmoid() function. I don’t see any other errors in broadcasting or anything else. Would appreciate some help in figuring out the error thank you!

Error:

[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W2A1/Python_Basics_with_Numpy.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.

Link to the classroom item you are referring to: Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera

Tip:
Passing all of the tests in the notebook does not mean your code is perfect. The notebook tests do not check for every possible error.

The grader uses totally different tests. And it uses a different execution environment (it doesn’t just run your code, it extracts only the graded functions and runs them separately.

So, start by checking carefully whether your code will work with any set of data, and avoids using global variables.

Hi thanks for the response! I followed your advice and checked if my code works with any set of data and tried my own test cases as well. But I’m still not sure what the problem is?

We cannot see anything wrong from this error, try to use different test cases as Tom says and see what happens!

Update for those finding the thread later:

Yes, there was. In basic_sigmoid() function, the value ‘1’ was used instead of ‘x’.