What does the UNIT TESTS in the Week 3 Assignment do?
What is the “sigmoid_test()” function?
UNIT TESTS
from public_tests import *
sigmoid_test(sigmoid)
What does the UNIT TESTS in the Week 3 Assignment do?
What is the “sigmoid_test()” function?
from public_tests import *
sigmoid_test(sigmoid)
Hi @gpty, welcome to the community!
The unit tests try out the function you wrote (sigmoid()
in this case), to see if it is behaving as expected. This is to help catch problems early so you can fix them before you move on to the next part of the assignment.
If you want to take a look at what sigmoid_test()
is doing, you can go to the File menu and choose Open…, then open up public_tests.py and take a look at the code.
Hi @Zia_Ur_Rehman1! Welcome to the community!
First, one thing to keep in mind for the future. When you have a new issue like this, it’s best to create a new topic with your question, rather than adding your question to an existing topic about a different issue, like this. Creating a new topic makes it easier for mentors to notice there is a new issue that someone needs help with, and also helps other students who are trying to find if there is a post about an issue they are seeing.
As far as the timeout error you’re seeing when you try to submit - one thing to try is to click the “Restart and Clear Output” option on the Kernel menu and then try submitting again. If you still get the same error, maybe you are having the same problem as this student:
(The link above will take you to the entry in the thread where a student explains what they did to fix the problem. Feel free to look through the rest of the post for more context, but be aware there are a few different issues discussed in this one thread).
Good luck! Write back to say how it went. I’m curious to hear what you find