def sigmoid(z):
return 1/(1+numpy.exp(-z))
this is my sigmoid function in python, but when i test it with some testcase, the result is 0/10. Are there any incorrect in my function
Have you imported numpy or is it done for you? Have you indented the return statement or not? It is seems to be right…
Only the grader can show this type of result. If a test case fails, it displays a proper error message.
Please share a screenshot of what it shows.
Posting solution code is not allowed here. Please remove your code and share a screenshot of the error message.
I’m sorry about my fault, but I can find out what’s wrong in my code. It passed all the test but grading failed
Please send me a direct message with your notebook attached so I can take a look.